
public interface Pool
extends org.jboss.jca.core.api.connectionmanager.pool.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,
Object connection)
Find a connection listener
|
Capacity |
getCapacity()
Get the capacity policy
|
ConnectionListener |
getConnection(Transaction trackByTransaction,
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 |
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(String poolName)
Sets pool name.
|
void |
shutdown()
Shutdown the pool
|
void setName(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 valueConnectionListener getConnection(Transaction trackByTransaction, 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, 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)