java.lang.Object | |
↳ | com.netflix.astyanax.test.TestHostConnectionPool |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a single latency sample after an operation on a connection belonging
to this pool
| |||||||||||
Borrow a connection from the host.
| |||||||||||
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.
| |||||||||||
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
Borrow a connection from the host. May create a new connection if one is not available.@return
ConnectionException |
---|
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.
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 |
---|
Completely shut down this connection pool as part of a client shutdown