org.apache.geronimo.connector.outbound
Class ConnectionHandleInterceptor

java.lang.Object
  extended by org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor
All Implemented Interfaces:
ConnectionInterceptor

public class ConnectionHandleInterceptor
extends Object
implements ConnectionInterceptor

ConnectionHandleInterceptor.java


Constructor Summary
ConnectionHandleInterceptor(ConnectionInterceptor next)
           
 
Method Summary
 void destroy()
           
 void getConnection(ConnectionInfo connectionInfo)
          in: connectionInfo not null, managedConnectionInfo not null.
 void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
          in: connectionInfo not null, managedConnectionInfo not null, managedConnection not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHandleInterceptor

public ConnectionHandleInterceptor(ConnectionInterceptor next)
Method Detail

getConnection

public void getConnection(ConnectionInfo connectionInfo)
                   throws ResourceException
in: connectionInfo not null, managedConnectionInfo not null. ManagedConnection may or may not be null. ConnectionHandle may or may not be null out: managedConnection not null. connection handle not null. managedConnectionInfo has connection handle registered. Connection handle is associated with ManagedConnection.

Specified by:
getConnection in interface ConnectionInterceptor
Parameters:
connectionInfo -
Throws:
ResourceException

returnConnection

public void returnConnection(ConnectionInfo connectionInfo,
                             ConnectionReturnAction connectionReturnAction)
in: connectionInfo not null, managedConnectionInfo not null, managedConnection not null. Handle can be null if mc is being destroyed from pool. out: managedCOnnectionInfo null, handle not in mci.handles.

Specified by:
returnConnection in interface ConnectionInterceptor
Parameters:
connectionInfo -
connectionReturnAction -

destroy

public void destroy()
Specified by:
destroy in interface ConnectionInterceptor


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.