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 managerProtocolException
TConnection acquireConnection() throws ProtocolException
ProtocolException
void releaseConnection(TConnection connection)
connection
- the connection