Home » geronimo-2.2-source-release » org.apache.geronimo.connector.outbound » [javadoc | source]
org.apache.geronimo.connector.outbound
public class: ConnectionTrackingInterceptor [javadoc | source]
java.lang.Object
   org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor

All Implemented Interfaces:
    ConnectionInterceptor

ConnectionTrackingInterceptor.java handles communication with the CachedConnectionManager. On method call entry, cached handles are checked for the correct Subject. On method call exit, cached handles are disassociated if possible. On getting or releasing a connection the CachedConnectionManager is notified.
Constructor:
 public ConnectionTrackingInterceptor(ConnectionInterceptor next,
    String key,
    ConnectionTracker connectionTracker) 
Method from org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor Summary:
enter,   exit,   getConnection,   returnConnection
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor Detail:
 public  void enter(Collection connectionInfos) throws ResourceException 
 public  void exit(Collection connectionInfos) throws ResourceException 
 public  void getConnection(ConnectionInfo connectionInfo) throws ResourceException 
    called by: GenericConnectionManager.allocateConnection, GenericConnectionManager.associateConnection, and enter. in: connectionInfo is non-null, and has non-null ManagedConnectionInfo with non-null managedConnectionfactory. connection handle may or may not be null. out: connectionInfo has non-null connection handle, non null ManagedConnectionInfo with non-null ManagedConnection and GeronimoConnectionEventListener. connection tracker has been notified of handle-managed connection association.
 public  void returnConnection(ConnectionInfo connectionInfo,
    ConnectionReturnAction connectionReturnAction) 
    called by: GeronimoConnectionEventListener.connectionClosed, GeronimoConnectionEventListener.connectionErrorOccurred, exit in: handle has already been dissociated from ManagedConnection. connectionInfo not null, has non-null ManagedConnectionInfo, ManagedConnectionInfo has non-null ManagedConnection handle can be null if called from error in ManagedConnection in pool. out: connectionTracker has been notified, ManagedConnectionInfo null.