|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A managed connection pool
Method Summary | |
void |
flush()
flush the pool |
long |
getAvailableConnectionCount()
|
ConnectionListener |
getConnection(Transaction tx,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Get a connection |
int |
getConnectionCount()
|
int |
getConnectionCreatedCount()
|
int |
getConnectionDestroyedCount()
|
int |
getInUseConnectionCount()
|
javax.resource.spi.ManagedConnectionFactory |
getManagedConnectionFactory()
Retrieve the managed connection factory for this pool |
int |
getMaxConnectionsInUseCount()
|
void |
returnConnection(ConnectionListener cl,
boolean kill)
Return a connection |
void |
setConnectionListenerFactory(ConnectionListenerFactory clf)
Set the connection listener factory |
void |
shutdown()
shutdown the pool |
Method Detail |
public javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
public void setConnectionListenerFactory(ConnectionListenerFactory clf)
clf
- the connection event listener factorypublic ConnectionListener getConnection(Transaction tx, Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
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
cl
- the connection event listener wrapping the connectionkill
- whether to destroy the managed connection
javax.resource.ResourceException
- for any errorpublic int getConnectionCount()
public int getInUseConnectionCount()
public int getConnectionCreatedCount()
public int getConnectionDestroyedCount()
public void shutdown()
public long getAvailableConnectionCount()
public int getMaxConnectionsInUseCount()
public void flush()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |