当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 connector API Documentation 英文版文档
InternalManagedConnectionPool (JBoss Connector API) - JBoss 4.0.1 sp1 connector API Documentation 英文版文档
org.jboss.resource.connectionmanager
Class InternalManagedConnectionPool
java.lang.Object
org.jboss.resource.connectionmanager.InternalManagedConnectionPool
- public class InternalManagedConnectionPool
- extends Object
The internal pool implementation
- Version:
- $Revision: 1.30 $
- Author:
- David Jencks, Adrian Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalManagedConnectionPool
public InternalManagedConnectionPool(javax.resource.spi.ManagedConnectionFactory mcf,
ConnectionListenerFactory clf,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
InternalManagedConnectionPool.PoolParams poolParams,
org.jboss.logging.Logger 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 getConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
- todo distinguish between connection dying while match called
and bad match strategy. In latter case we should put it back in
the pool.
- Throws:
javax.resource.ResourceException
returnConnection
public void returnConnection(ConnectionListener 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()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.