org.jboss.resource.connectionmanager
Class InternalManagedConnectionPool

java.lang.Object
  extended byorg.jboss.resource.connectionmanager.InternalManagedConnectionPool

public class InternalManagedConnectionPool
extends java.lang.Object

The internal pool implementation


Nested Class Summary
static class InternalManagedConnectionPool.PoolParams (src)
           
 
Constructor Summary
InternalManagedConnectionPool(ManagedConnectionFactory (src)  mcf, ConnectionListenerFactory (src)  clf, javax.security.auth.Subject subject, ConnectionRequestInfo (src)  cri, InternalManagedConnectionPool.PoolParams (src)  poolParams, Logger (src)  log)
          Create a new internal pool
 
Method Summary
 void fillToMin()
           
 void flush()
           
 long getAvailableConnections()
           
 ConnectionListener (src) getConnection(javax.security.auth.Subject subject, ConnectionRequestInfo (src)  cri)
          todo distinguish between connection dying while match called and bad match strategy.
 int getConnectionCount()
           
 int getConnectionCreatedCount()
           
 int getConnectionDestroyedCount()
           
 int getConnectionInUseCount()
           
 int getMaxConnectionsInUseCount()
           
 void removeTimedOut()
           
 void returnConnection(ConnectionListener (src)  cl, boolean kill)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalManagedConnectionPool

public InternalManagedConnectionPool(ManagedConnectionFactory (src)  mcf,
                                     ConnectionListenerFactory (src)  clf,
                                     javax.security.auth.Subject subject,
                                     ConnectionRequestInfo (src)  cri,
                                     InternalManagedConnectionPool.PoolParams (src)  poolParams,
                                     Logger (src)  log)
Create a new internal pool

Parameters:
mcf - the managed connection factory
subject - the subject
cri - the connection request information
poolParams - the pooling parameters
log - the log
Method Detail

getAvailableConnections

public long getAvailableConnections()

getMaxConnectionsInUseCount

public int getMaxConnectionsInUseCount()

getConnectionInUseCount

public int getConnectionInUseCount()

getConnection

public ConnectionListener (src)  getConnection(javax.security.auth.Subject subject,
                                        ConnectionRequestInfo (src)  cri)
                                 throws ResourceException (src) 
todo distinguish between connection dying while match called and bad match strategy. In latter case we should put it back in the pool.

Throws:
ResourceException (src)

returnConnection

public void returnConnection(ConnectionListener (src)  cl,
                             boolean kill)

flush

public void flush()

removeTimedOut

public void removeTimedOut()

shutdown

public void shutdown()

fillToMin

public void fillToMin()

getConnectionCount

public int getConnectionCount()

getConnectionCreatedCount

public int getConnectionCreatedCount()

getConnectionDestroyedCount

public int getConnectionDestroyedCount()