Package oracle.stellent.ridc.protocol
Class ConnectionPoolManager
java.lang.Object
oracle.stellent.ridc.protocol.ConnectionPoolManager
Manages the available threading models
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<TCon extends Connection>
ConnectionPool<TCon>createConnectionPool(String name, IdcClientConfig config, ConnectionManager<TCon, IdcClientConfig> manager) Create a new connection poolbooleanDetermine if the given threading model name is registeredvoidregisterConnectionPool(String name, Class<? extends ConnectionPool> threadingModel) Register a new connection pool
-
Constructor Details
-
ConnectionPoolManager
public ConnectionPoolManager()
-
-
Method Details
-
registerConnectionPool
Register a new connection pool- Parameters:
name- the model namethreadingModel- the class implementing theConnectionPoolinterface
-
isConnectionPoolRegistered
Determine if the given threading model name is registered- Parameters:
name- the model name- Returns:
- true if the name maps to a threading model
-
createConnectionPool
public <TCon extends Connection> ConnectionPool<TCon> createConnectionPool(String name, IdcClientConfig config, ConnectionManager<TCon, IdcClientConfig> manager) throws ProtocolExceptionCreate a new connection pool- Parameters:
name-config-manager-- Returns:
- Throws:
ProtocolException
-