Skip navigation links

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

E17274-03


oracle.stellent.ridc.protocol.impl
Class SimpleConnectionPool<TConnection extends Connection>

java.lang.Object
  extended by oracle.stellent.ridc.protocol.impl.SimpleConnectionPool<TConnection>

All Implemented Interfaces:
ConnectionPool<TConnection>

public class SimpleConnectionPool<TConnection extends Connection>
extends java.lang.Object
implements ConnectionPool<TConnection>

Creates a new connection for every thread.


Constructor Summary
SimpleConnectionPool()
           

 

Method Summary
 TConnection acquireConnection()
          Obtain a connection from the pool for the current thread
 void initialize(IdcClientConfig clientConfig, ConnectionManager<TConnection,IdcClientConfig> connectionManager)
          Initialize the threading model
 void releaseConnection(TConnection connection)
          Release the connection for this thread

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SimpleConnectionPool

public SimpleConnectionPool()

Method Detail

initialize

public void initialize(IdcClientConfig clientConfig,
                       ConnectionManager<TConnection,IdcClientConfig> connectionManager)
                throws ProtocolException
Initialize the threading model
Specified by:
initialize in interface ConnectionPool<TConnection extends Connection>
Parameters:
clientConfig - the client configuration
connectionManager - the connection manager
Throws:
ProtocolException

acquireConnection

public TConnection acquireConnection()
                                                 throws ProtocolException
Description copied from interface: ConnectionPool
Obtain a connection from the pool for the current thread
Specified by:
acquireConnection in interface ConnectionPool<TConnection extends Connection>
Returns:
a new connection for the current thread
Throws:
ProtocolException

releaseConnection

public void releaseConnection(TConnection connection)
Release the connection for this thread
Specified by:
releaseConnection in interface ConnectionPool<TConnection extends Connection>
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.