public interface ConnectionPool<TConnection extends Connection>
| Modifier and Type | Method and Description |
|---|---|
TConnection |
acquireConnection()
Obtain a connection from the pool for the current thread
|
void |
initialize(IdcClientConfig clientConfig, ConnectionManager<TConnection,IdcClientConfig> connectionManager)
Let a pool implementation initialize itself
|
void |
releaseConnection(TConnection connection)
Release the connection for the current thread
|
void initialize(IdcClientConfig clientConfig, ConnectionManager<TConnection,IdcClientConfig> connectionManager) throws ProtocolException
clientConfig - the client configurationconnectionManager - the connection managerProtocolExceptionTConnection acquireConnection() throws ProtocolException
ProtocolExceptionvoid releaseConnection(TConnection connection)
connection - the connection