oracle.stellent.ridc.protocol
Interface ConnectionManager<TConnection extends Connection,TClientConfig extends IdcClientConfig>

All Known Implementing Classes:
IdcHttpConnectionManager, SocketConnectionManager, SSLSocketConnectionManager

public interface ConnectionManager<TConnection extends Connection,TClientConfig extends IdcClientConfig>

Manages connection lifecycle for a given IdcClient.


Method Summary
 void cleanupConnection(TConnection connection)
          Cleanup the connection on this service request
 TConnection createConnection(TClientConfig clientConfig)
          Create a new connection.
 void initializeConnection(TConnection connection)
          Initialize a connection aquired from the threading model to use with this service request object.
 

Method Detail

createConnection

TConnection createConnection(TClientConfig clientConfig)
                                                throws ProtocolException
Create a new connection. This will be called to populate the threading model. This connection should be uninitialized.

Parameters:
clientConfig - the client configuration
Returns:
the new connection
Throws:
ProtocolException

initializeConnection

void initializeConnection(TConnection connection)
                          throws ProtocolException
Initialize a connection aquired from the threading model to use with this service request object.

Parameters:
connection - the connection
Throws:
ProtocolException

cleanupConnection

void cleanupConnection(TConnection connection)
Cleanup the connection on this service request

Parameters:
connection - the protocol connection


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