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 |
findConnectionListener(javax.resource.spi.ManagedConnection mc)
Find a connection listener
|
ConnectionListener |
findConnectionListener(javax.resource.spi.ManagedConnection mc,
java.lang.Object connection)
Find a connection listener
|
Capacity |
getCapacity()
Get the capacity policy
|
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.
|
boolean |
isFIFO()
Is the pool a FIFO or FILO pool
|
boolean |
isSharable()
Is sharable
|
boolean |
isShutdown()
Is shutdown
|
void |
returnConnection(ConnectionListener cl,
boolean kill)
Return a connection
|
void |
setCapacity(Capacity c)
Set the capacity policy
|
void |
setConnectionManager(ConnectionManager cm)
Set the connection manager
|
void |
setName(java.lang.String poolName)
Sets pool name.
|
void |
shutdown()
Shutdown the pool
|
flush, flush, flush, getName, getStatistics, testConnection, testConnection
void setName(java.lang.String poolName)
poolName
- pool nameboolean isSharable()
javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
void setConnectionManager(ConnectionManager cm)
cm
- the connection managerCapacity getCapacity()
void setCapacity(Capacity c)
c
- The valueboolean isFIFO()
ConnectionListener 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 errorConnectionListener findConnectionListener(javax.resource.spi.ManagedConnection mc)
mc
- The managed connectionConnectionListener findConnectionListener(javax.resource.spi.ManagedConnection mc, java.lang.Object connection)
mc
- The managed connectionconnection
- The connectionvoid 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 errorboolean isShutdown()
void shutdown()
void emptyManagedConnectionPool(ManagedConnectionPool pool)
pool
- The poolCoreLogger getLogger()
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)