Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jboss.resource.connectionmanager
Class JBossManagedConnectionPool.PoolByCri  view JBossManagedConnectionPool.PoolByCri download JBossManagedConnectionPool.PoolByCri.java

java.lang.Object
  extended byorg.jboss.resource.connectionmanager.JBossManagedConnectionPool.BasePool
      extended byorg.jboss.resource.connectionmanager.JBossManagedConnectionPool.PoolByCri
All Implemented Interfaces:
ManagedConnectionPool
Enclosing class:
JBossManagedConnectionPool

private static class JBossManagedConnectionPool.PoolByCri
extends JBossManagedConnectionPool.BasePool

Pool by connection request information


Constructor Summary
JBossManagedConnectionPool.PoolByCri(javax.resource.spi.ManagedConnectionFactory mcf, InternalManagedConnectionPool.PoolParams poolParams, boolean noTxSeparatePools, org.jboss.logging.Logger log)
           
 
Method Summary
 void flush()
          flush the pool
 long getAvailableConnectionCount()
           
 ConnectionListener getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri)
          Get a connection
 int getConnectionCount()
           
 int getConnectionCreatedCount()
           
 int getConnectionDestroyedCount()
           
 int getInUseConnectionCount()
          Return the inuse count
protected  java.lang.Object getKey(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri, boolean separateNoTx)
          Retrieve the key for this request
 javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
          Retrieve the managed connection factory for this pool
 int getMaxConnectionsInUseCount()
           
 void returnConnection(ConnectionListener cl, boolean kill)
          Return a connection
 void setConnectionListenerFactory(ConnectionListenerFactory clf)
          Set the connection listener factory
 void shutdown()
          shutdown the pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossManagedConnectionPool.PoolByCri

public JBossManagedConnectionPool.PoolByCri(javax.resource.spi.ManagedConnectionFactory mcf,
                                            InternalManagedConnectionPool.PoolParams poolParams,
                                            boolean noTxSeparatePools,
                                            org.jboss.logging.Logger log)
Method Detail

getKey

protected java.lang.Object getKey(javax.security.auth.Subject subject,
                                  javax.resource.spi.ConnectionRequestInfo cri,
                                  boolean separateNoTx)
Description copied from class: JBossManagedConnectionPool.BasePool
Retrieve the key for this request

Specified by:
getKey in class JBossManagedConnectionPool.BasePool

getManagedConnectionFactory

public javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
Description copied from interface: ManagedConnectionPool
Retrieve the managed connection factory for this pool

Specified by:
getManagedConnectionFactory in interface ManagedConnectionPool

setConnectionListenerFactory

public void setConnectionListenerFactory(ConnectionListenerFactory clf)
Description copied from interface: ManagedConnectionPool
Set the connection listener factory

Specified by:
setConnectionListenerFactory in interface ManagedConnectionPool

getInUseConnectionCount

public int getInUseConnectionCount()
Return the inuse count

Specified by:
getInUseConnectionCount in interface ManagedConnectionPool

getConnection

public ConnectionListener getConnection(javax.security.auth.Subject subject,
                                        javax.resource.spi.ConnectionRequestInfo cri)
                                 throws javax.resource.ResourceException
Description copied from interface: ManagedConnectionPool
Get a connection

Specified by:
getConnection in interface ManagedConnectionPool

returnConnection

public void returnConnection(ConnectionListener cl,
                             boolean kill)
                      throws javax.resource.ResourceException
Description copied from interface: ManagedConnectionPool
Return a connection

Specified by:
returnConnection in interface ManagedConnectionPool

getConnectionCount

public int getConnectionCount()
Specified by:
getConnectionCount in interface ManagedConnectionPool

getConnectionCreatedCount

public int getConnectionCreatedCount()
Specified by:
getConnectionCreatedCount in interface ManagedConnectionPool

getConnectionDestroyedCount

public int getConnectionDestroyedCount()
Specified by:
getConnectionDestroyedCount in interface ManagedConnectionPool

getAvailableConnectionCount

public long getAvailableConnectionCount()
Specified by:
getAvailableConnectionCount in interface ManagedConnectionPool

getMaxConnectionsInUseCount

public int getMaxConnectionsInUseCount()
Specified by:
getMaxConnectionsInUseCount in interface ManagedConnectionPool

shutdown

public void shutdown()
Description copied from interface: ManagedConnectionPool
shutdown the pool

Specified by:
shutdown in interface ManagedConnectionPool

flush

public void flush()
Description copied from interface: ManagedConnectionPool
flush the pool

Specified by:
flush in interface ManagedConnectionPool