org.apache.geronimo.connector.outbound
Class ConnectionHandleInterceptor
java.lang.Object
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor
- All Implemented Interfaces:
- ConnectionInterceptor
public class ConnectionHandleInterceptor
- extends Object
- implements ConnectionInterceptor
ConnectionHandleInterceptor.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionHandleInterceptor
public ConnectionHandleInterceptor(ConnectionInterceptor next)
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-2009 Apache Software Foundation. All Rights Reserved.