org.jboss.resource.connectionmanager
Class InternalManagedConnectionPool
java.lang.Object
org.jboss.resource.connectionmanager.InternalManagedConnectionPool
- public class InternalManagedConnectionPool
- extends java.lang.Object
The internal pool implementation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 factorysubject
- the subjectcri
- the connection request informationpoolParams
- the pooling parameterslog
- the log
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()