java.lang.Object | |
↳ | com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool<CL> |
Known Direct Subclasses |
Base for all connection pools that keep a separate pool of connections for each host.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
config | |||||||||||
factory | |||||||||||
hosts | |||||||||||
monitor | |||||||||||
topology |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a host to the connection pool.
| |||||||||||
Execute an operation with failover within the context of the connection
pool.
| |||||||||||
Return list of active hosts on which connections can be created
| |||||||||||
Return an immutable connection pool for this host
| |||||||||||
Return true if host is contained within the connection pool
| |||||||||||
Return true if the host is up
| |||||||||||
Remove a host from the connection pool.
| |||||||||||
Sets the complete set of hosts keyed by token.
| |||||||||||
Shut down the connection pool and terminate all existing connections
| |||||||||||
Setup the connection pool and start any maintenance threads
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a new failover context.
| |||||||||||
Called every time a host is added, removed or is marked as down
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.netflix.astyanax.connectionpool.ConnectionPool
| |||||||||||
From interface
com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.Listener
|
Execute an operation with failover within the context of the connection pool. The operation will only fail over for connection pool errors and not application errors.@return
ConnectionException |
---|
Return list of active hosts on which connections can be created
Return an immutable connection pool for this host
Remove a host from the connection pool. Any pending connections will be allowed to complete
Sets the complete set of hosts keyed by token.
Shut down the connection pool and terminate all existing connections
Setup the connection pool and start any maintenance threads
Return a new failover context. The context captures the connection pool state and implements the necessary failover logic.@return
ConnectionException |
---|
Called every time a host is added, removed or is marked as down