Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.protocol
Interface ConnectionPool<TConnection extends Connection>

All Known Implementing Classes:
BlockingQueueConnectionPool, SimpleConnectionPool

public interface ConnectionPool<TConnection extends Connection>

The interface of connection pool implementations that reuse connections


Method Summary
 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

 

Method Detail

initialize

void initialize(IdcClientConfig clientConfig,
                ConnectionManager<TConnection,IdcClientConfig> connectionManager)
                throws ProtocolException
Let a pool implementation initialize itself
Parameters:
clientConfig - the client configuration
connectionManager - the connection manager
Throws:
ProtocolException

acquireConnection

TConnection acquireConnection()
                                                 throws ProtocolException
Obtain a connection from the pool for the current thread
Returns:
a new connection for the current thread
Throws:
ProtocolException

releaseConnection

void releaseConnection(TConnection connection)
Release the connection for the current thread
Parameters:
connection - the connection

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.