|
||||||||||
| 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,
java.lang.String key,
ConnectionTracker connectionTracker)
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
void |
enter(java.util.Collection<ConnectionInfo> connectionInfos)
|
void |
exit(java.util.Collection<ConnectionInfo> connectionInfos)
|
void |
getConnection(ConnectionInfo connectionInfo)
called by: GenericConnectionManager.allocateConnection, GenericConnectionManager.associateConnection, and enter. |
void |
info(java.lang.StringBuilder s)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionTrackingInterceptor(ConnectionInterceptor next,
java.lang.String key,
ConnectionTracker connectionTracker)
| Method Detail |
|---|
public void getConnection(ConnectionInfo connectionInfo)
throws javax.resource.ResourceException
getConnection in interface ConnectionInterceptorconnectionInfo -
javax.resource.ResourceException
public void reassociateConnection(ConnectionInfo connectionInfo)
throws javax.resource.ResourceException
javax.resource.ResourceException
public void returnConnection(ConnectionInfo connectionInfo,
ConnectionReturnAction connectionReturnAction)
returnConnection in interface ConnectionInterceptorconnectionInfo - connectionReturnAction - public void destroy()
destroy in interface ConnectionInterceptor
public void enter(java.util.Collection<ConnectionInfo> connectionInfos)
throws javax.resource.ResourceException
javax.resource.ResourceException
public void exit(java.util.Collection<ConnectionInfo> connectionInfos)
throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic void info(java.lang.StringBuilder s)
info in interface ConnectionInterceptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||