Class BlockingQueueConnectionPool<TConnection extends Connection>
java.lang.Object
oracle.stellent.ridc.protocol.impl.BlockingQueueConnectionPool<TConnection>
- All Implemented Interfaces:
ConnectionPool<TConnection>
public class BlockingQueueConnectionPool<TConnection extends Connection>
extends Object
implements ConnectionPool<TConnection>
Threading model that uses a BlockingQueue to handle multiple Content Server connections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain a connection from the pool for the current threadvoidinitialize(IdcClientConfig clientConfig, ConnectionManager<TConnection, IdcClientConfig> connectionManager) Initialize the threading modelvoidreleaseConnection(TConnection connection) Release the connection for this thread
-
Constructor Details
-
BlockingQueueConnectionPool
public BlockingQueueConnectionPool()
-
-
Method Details
-
initialize
public void initialize(IdcClientConfig clientConfig, ConnectionManager<TConnection, IdcClientConfig> connectionManager) throws ProtocolExceptionInitialize the threading model- Specified by:
initializein interfaceConnectionPool<TConnection extends Connection>- Parameters:
clientConfig- the client configurationconnectionManager- the connection manager- Throws:
ProtocolException
-
acquireConnection
Description copied from interface:ConnectionPoolObtain a connection from the pool for the current thread- Specified by:
acquireConnectionin interfaceConnectionPool<TConnection extends Connection>- Returns:
- a new connection for the current thread
- Throws:
ProtocolException
-
releaseConnection
Release the connection for this thread- Specified by:
releaseConnectionin interfaceConnectionPool<TConnection extends Connection>- Parameters:
connection- the connection
-