|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor
public class ConnectionTrackingInterceptor
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 Summary | |
---|---|
ConnectionTrackingInterceptor(ConnectionInterceptor next,
String key,
ConnectionTracker connectionTracker)
|
Method Summary | |
---|---|
void |
destroy()
|
void |
enter(Collection<ConnectionInfo> connectionInfos)
|
void |
exit(Collection<ConnectionInfo> connectionInfos)
|
void |
getConnection(ConnectionInfo connectionInfo)
called by: GenericConnectionManager.allocateConnection, GenericConnectionManager.associateConnection, and enter. |
void |
reassociateConnection(ConnectionInfo connectionInfo)
Called when a proxied connection which has been released need to be reassociated with a real connection. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionTrackingInterceptor(ConnectionInterceptor next, String key, ConnectionTracker connectionTracker)
Method Detail |
---|
public void getConnection(ConnectionInfo connectionInfo) throws ResourceException
getConnection
in interface ConnectionInterceptor
connectionInfo
-
ResourceException
public void reassociateConnection(ConnectionInfo connectionInfo) throws ResourceException
ResourceException
public void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
returnConnection
in interface ConnectionInterceptor
connectionInfo
- connectionReturnAction
- public void destroy()
destroy
in interface ConnectionInterceptor
public void enter(Collection<ConnectionInfo> connectionInfos) throws ResourceException
ResourceException
public void exit(Collection<ConnectionInfo> connectionInfos) throws ResourceException
ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |