java.lang.Object | |
↳ | com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool<CL> |
Pool of connections for a single host. Features 1. Async open connection 2.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SimpleHostConnectionPool.Listener<CL> | Interface to notify the owning connection pool of up/down state changes. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
config |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a single latency sample after an operation on a connection belonging
to this pool
| |||||||||||
Create a connection as long the max hasn't been reached@return
| |||||||||||
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.
| |||||||||||
Mark the host as down.
| |||||||||||
Open a new connection synchronously@return
| |||||||||||
Return a connection to this host
| |||||||||||
Completely shut down this connection pool as part of a client shutdown
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.netflix.astyanax.connectionpool.HostConnectionPool
|
Add a single latency sample after an operation on a connection belonging to this pool
Create a connection as long the max hasn't been reached@return
timeout | - Max wait timeout if max connections have been allocated and pool is empty. 0 to throw a MaxConnsPerHostReachedException. |
---|
TimeoutException | if timeout specified and no new connection is available MaxConnsPerHostReachedException if max connections created and no timeout was specified |
---|---|
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
Determine if pool is shut down.
Mark the host as down. No new connections will be created from this host. Connections currently in use will be allowed to continue processing.
Open a new connection synchronously@return
ConnectionException |
---|
Return a connection to this host
Completely shut down this connection pool as part of a client shutdown