public interface Pool extends Pool
| Modifier and Type | Method and Description |
|---|---|
void |
emptyManagedConnectionPool(ManagedConnectionPool pool)
Remove the matching managed connection pool if the pool is empty
|
ConnectionListener |
getConnection(javax.transaction.Transaction trackByTransaction,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Get a connection
|
CoreLogger |
getLogger()
Get the logger
|
javax.resource.spi.ManagedConnectionFactory |
getManagedConnectionFactory()
Retrieve the managed connection factory for this pool.
|
void |
returnConnection(ConnectionListener cl,
boolean kill)
Return a connection
|
void |
setConnectionListenerFactory(ConnectionListenerFactory clf)
Set the connection listener factory.
|
void |
setName(java.lang.String poolName)
Sets pool name.
|
void |
shutdown()
Shutdown the pool
|
flush, flush, getName, getStatistics, testConnectionvoid setName(java.lang.String poolName)
poolName - pool namejavax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
void setConnectionListenerFactory(ConnectionListenerFactory clf)
clf - the connection event listener factoryConnectionListener getConnection(javax.transaction.Transaction trackByTransaction, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
trackByTransaction - for transaction stickinesssubject - the subject for connectioncri - the connection request informationjavax.resource.ResourceException - for any errorvoid returnConnection(ConnectionListener cl, boolean kill) throws javax.resource.ResourceException
cl - the connection event listener wrapping the connectionkill - whether to destroy the managed connectionjavax.resource.ResourceException - for any errorvoid shutdown()
void emptyManagedConnectionPool(ManagedConnectionPool pool)
pool - The poolCoreLogger getLogger()
Copyright ? 2008-2009 Red Hat Middleware LLC (http://www.jboss.com/)