|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resource.connectionmanager.JBossManagedConnectionPool.BasePool
The base pool implementation
Constructor Summary | |
JBossManagedConnectionPool.BasePool(javax.resource.spi.ManagedConnectionFactory mcf,
InternalManagedConnectionPool.PoolParams poolParams,
boolean noTxSeparatePools,
org.jboss.logging.Logger log)
Create a new base pool |
Method Summary | |
void |
flush()
flush the pool |
long |
getAvailableConnectionCount()
|
ConnectionListener |
getConnection(Transaction transaction,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Get a connection |
int |
getConnectionCount()
|
int |
getConnectionCreatedCount()
|
int |
getConnectionDestroyedCount()
|
int |
getInUseConnectionCount()
Return the inuse count |
protected abstract Object |
getKey(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()
|
protected TransactionManager |
getTransactionManager()
Get any transaction manager associated with the pool |
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 |
public JBossManagedConnectionPool.BasePool(javax.resource.spi.ManagedConnectionFactory mcf, InternalManagedConnectionPool.PoolParams poolParams, boolean noTxSeparatePools, org.jboss.logging.Logger log)
mcf
- the managed connection factorypoolParams
- the pooling parameterslog
- the logMethod Detail |
protected abstract Object getKey(Subject subject, javax.resource.spi.ConnectionRequestInfo cri, boolean separateNoTx) throws javax.resource.ResourceException
subject
- the subjectcri
- the connection request information
javax.resource.ResourceException
- for any errorpublic javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
ManagedConnectionPool
getManagedConnectionFactory
in interface ManagedConnectionPool
public void setConnectionListenerFactory(ConnectionListenerFactory clf)
ManagedConnectionPool
setConnectionListenerFactory
in interface ManagedConnectionPool
clf
- the connection event listener factorypublic int getInUseConnectionCount()
getInUseConnectionCount
in interface ManagedConnectionPool
public ConnectionListener getConnection(Transaction transaction, Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
ManagedConnectionPool
getConnection
in interface ManagedConnectionPool
subject
- the subject for connectioncri
- the connection request information
javax.resource.ResourceException
- for any errorpublic void returnConnection(ConnectionListener cl, boolean kill) throws javax.resource.ResourceException
ManagedConnectionPool
returnConnection
in interface ManagedConnectionPool
cl
- the connection event listener wrapping the connectionkill
- whether to destroy the managed connection
javax.resource.ResourceException
- for any errorpublic int getConnectionCount()
getConnectionCount
in interface ManagedConnectionPool
public int getConnectionCreatedCount()
getConnectionCreatedCount
in interface ManagedConnectionPool
public int getConnectionDestroyedCount()
getConnectionDestroyedCount
in interface ManagedConnectionPool
public long getAvailableConnectionCount()
getAvailableConnectionCount
in interface ManagedConnectionPool
public int getMaxConnectionsInUseCount()
getMaxConnectionsInUseCount
in interface ManagedConnectionPool
public void shutdown()
ManagedConnectionPool
shutdown
in interface ManagedConnectionPool
public void flush()
ManagedConnectionPool
flush
in interface ManagedConnectionPool
protected TransactionManager getTransactionManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |