public class ConnectionTrackingInterceptor extends Object implements ConnectionInterceptor
Constructor and Description |
---|
ConnectionTrackingInterceptor(ConnectionInterceptor next,
String key,
ConnectionTracker connectionTracker) |
Modifier and Type | Method and Description |
---|---|
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 |
info(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.
|
public ConnectionTrackingInterceptor(ConnectionInterceptor next, String key, ConnectionTracker connectionTracker)
public void getConnection(ConnectionInfo connectionInfo) throws javax.resource.ResourceException
getConnection
in interface ConnectionInterceptor
connectionInfo
- 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 ConnectionInterceptor
connectionInfo
- connectionReturnAction
- public void destroy()
destroy
in interface ConnectionInterceptor
public void enter(Collection<ConnectionInfo> connectionInfos) throws javax.resource.ResourceException
javax.resource.ResourceException
public void exit(Collection<ConnectionInfo> connectionInfos) throws javax.resource.ResourceException
javax.resource.ResourceException
public void info(StringBuilder s)
info
in interface ConnectionInterceptor
Copyright © 2018. All rights reserved.