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()
           
 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
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


Copyright © 2008-2009 Oracle Corporation. All Rights Reserved.