org.apache.geronimo.connector.outbound
Class ConnectionHandleInterceptor

java.lang.Object
  extended by org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor
All Implemented Interfaces:
ConnectionInterceptor

public class ConnectionHandleInterceptor
extends java.lang.Object
implements ConnectionInterceptor

ConnectionHandleInterceptor.java

Version:
$Rev: 984469 $ $Date: 2010-08-12 00:49:47 +0800 (Thu, 12 Aug 2010) $

Constructor Summary
ConnectionHandleInterceptor(ConnectionInterceptor next)
           
 
Method Summary
 void destroy()
           
 void getConnection(ConnectionInfo connectionInfo)
          in: connectionInfo not null, managedConnectionInfo not null.
 void info(java.lang.StringBuilder s)
           
 void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
          in: connectionInfo not null, managedConnectionInfo not null, managedConnection not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHandleInterceptor

public ConnectionHandleInterceptor(ConnectionInterceptor next)
Method Detail

getConnection

public void getConnection(ConnectionInfo connectionInfo)
                   throws javax.resource.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:
javax.resource.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

info

public void info(java.lang.StringBuilder s)
Specified by:
info in interface ConnectionInterceptor


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.