org.apache.geronimo.connector.outbound
Class MultiPoolConnectionInterceptor

java.lang.Object
  extended byorg.apache.geronimo.connector.outbound.MultiPoolConnectionInterceptor
All Implemented Interfaces:
ConnectionInterceptor

public class MultiPoolConnectionInterceptor
extends Object
implements ConnectionInterceptor

MultiPoolConnectionInterceptor maps the provided subject and connection request info to a "SinglePool". This can be used to make sure all matches will succeed, avoiding synchronization slowdowns. Created: Fri Oct 10 12:53:11 2003

Version:
$Revision: 1.5 $ $Date: 2004/05/30 19:03:36 $

Constructor Summary
MultiPoolConnectionInterceptor(ConnectionInterceptor next, PoolingSupport singlePoolFactory, boolean useSubject, boolean useCRI)
           
 
Method Summary
 void getConnection(ConnectionInfo connectionInfo)
           
 void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPoolConnectionInterceptor

public MultiPoolConnectionInterceptor(ConnectionInterceptor next,
                                      PoolingSupport singlePoolFactory,
                                      boolean useSubject,
                                      boolean useCRI)
Method Detail

getConnection

public void getConnection(ConnectionInfo connectionInfo)
                   throws javax.resource.ResourceException
Specified by:
getConnection in interface ConnectionInterceptor
Throws:
javax.resource.ResourceException

returnConnection

public void returnConnection(ConnectionInfo connectionInfo,
                             ConnectionReturnAction connectionReturnAction)
Specified by:
returnConnection in interface ConnectionInterceptor


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.