|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 log| Method 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 ManagedConnectionPoolpublic void setConnectionListenerFactory(ConnectionListenerFactory clf)
ManagedConnectionPool
setConnectionListenerFactory in interface ManagedConnectionPoolclf - the connection event listener factorypublic int getInUseConnectionCount()
getInUseConnectionCount in interface ManagedConnectionPoolpublic ConnectionListener getConnection(Transaction transaction, Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
ManagedConnectionPool
getConnection in interface ManagedConnectionPoolsubject - 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 ManagedConnectionPoolcl - the connection event listener wrapping the connectionkill - whether to destroy the managed connection
javax.resource.ResourceException - for any errorpublic int getConnectionCount()
getConnectionCount in interface ManagedConnectionPoolpublic int getConnectionCreatedCount()
getConnectionCreatedCount in interface ManagedConnectionPoolpublic int getConnectionDestroyedCount()
getConnectionDestroyedCount in interface ManagedConnectionPoolpublic long getAvailableConnectionCount()
getAvailableConnectionCount in interface ManagedConnectionPoolpublic int getMaxConnectionsInUseCount()
getMaxConnectionsInUseCount in interface ManagedConnectionPoolpublic void shutdown()
ManagedConnectionPool
shutdown in interface ManagedConnectionPoolpublic void flush()
ManagedConnectionPool
flush in interface ManagedConnectionPoolprotected TransactionManager getTransactionManager()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||