com.netflix.astyanax.connectionpool.ConnectionPool<CL> |
Known Indirect Subclasses |
Base interface for a pool of connections. A concrete connection pool will track hosts in a cluster.
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
|
Add a host to the connection pool.
ConnectionException |
---|
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 | |
OperationException | |
ConnectionException |
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
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