com.netflix.astyanax.connectionpool.HostConnectionPool<CL> |
Known Indirect Subclasses |
Pool of connections for a single host
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a single latency sample after an operation on a connection belonging
to this pool
| |||||||||||
Borrow a connection from the host.
| |||||||||||
Close this connection and update internal state
| |||||||||||
Get number of open connections including any that are currently borrowed
and those that are currently idel
| |||||||||||
Get number of threads blocked waiting for a free connection
| |||||||||||
Get number of currently borrowed connections
| |||||||||||
Get the host to which this pool is associated
| |||||||||||
Return the number of idle active connections.
| |||||||||||
Get the average latency as calculated by the scoring strategy
| |||||||||||
Get the number of pending connection open attempts
| |||||||||||
Return implementation specific score to be used by weighted pool
selection algorithms
| |||||||||||
Create numConnections new connections and add them to the
| |||||||||||
Determine if pool is shut down.
| |||||||||||
Shut down the host so no more connections may be created when
borrowConnections is called and connections will be terminated when
returnConnection is called.
| |||||||||||
This open is different from borrowConnection in that it actually creates
a new connection without waiting for one that may be idle.
| |||||||||||
Return a connection to the host's pool.
| |||||||||||
Completely shut down this connection pool as part of a client shutdown
|
Add a single latency sample after an operation on a connection belonging to this pool
Borrow a connection from the host. May create a new connection if one is not available.@return
ConnectionException |
---|
Close this connection and update internal state
Get number of open connections including any that are currently borrowed and those that are currently idel
Get number of threads blocked waiting for a free connection
Get number of currently borrowed connections
Return the number of idle active connections. These are connections that can be borrowed immediatley without having to make a new connection to the remote server.
Get the average latency as calculated by the scoring strategy
Get the number of pending connection open attempts
Return implementation specific score to be used by weighted pool selection algorithms
Create numConnections new connections and add them to the
ConnectionException | |
InterruptedException | |
ConnectionException | |
InterruptedException |
Determine if pool is shut down.
Shut down the host so no more connections may be created when borrowConnections is called and connections will be terminated when returnConnection is called.
This open is different from borrowConnection in that it actually creates a new connection without waiting for one that may be idle. openConnection is still subject to all other connection pool limitations.@return
ConnectionException |
---|
Return a connection to the host's pool. May close the connection if the pool is down or the last exception on the connection is determined to be fatal.
Completely shut down this connection pool as part of a client shutdown