public class ConnectionPoolManager extends Object
Constructor and Description |
---|
ConnectionPoolManager() |
Modifier and Type | Method and Description |
---|---|
<TCon extends Connection> |
createConnectionPool(String name,
IdcClientConfig config,
ConnectionManager<TCon,IdcClientConfig> manager)
Create a new connection pool
|
boolean |
isConnectionPoolRegistered(String name)
Determine if the given threading model name is registered
|
void |
registerConnectionPool(String name,
Class<? extends ConnectionPool> threadingModel)
Register a new connection pool
|
public void registerConnectionPool(String name, Class<? extends ConnectionPool> threadingModel)
name
- the model namethreadingModel
- the class implementing the ConnectionPool
interfacepublic boolean isConnectionPoolRegistered(String name)
name
- the model namepublic <TCon extends Connection> ConnectionPool<TCon> createConnectionPool(String name, IdcClientConfig config, ConnectionManager<TCon,IdcClientConfig> manager) throws ProtocolException
name
- config
- manager
- ProtocolException