站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended byorg.jboss.resource.connectionmanager.InternalManagedConnectionPool

public class InternalManagedConnectionPool
extends Object

The internal pool implementation

Version:
$Revision: 1.30 $
Author:
David Jencks, Adrian Brock

Nested Class Summary
static class InternalManagedConnectionPool.PoolParams
           
 
Constructor Summary
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
 
Method Summary
 void fillToMin()
           
 void flush()
           
 long getAvailableConnections()
           
 ConnectionListener getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo 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 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(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 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 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.