|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagedConnectionPool
A managed connection pool
| Method Summary | |
|---|---|
void |
flush()
flush the pool |
long |
getAvailableConnectionCount()
|
ConnectionListener |
getConnection(Transaction trackByTransaction,
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 |
|---|
javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
void setConnectionListenerFactory(ConnectionListenerFactory clf)
clf - the connection event listener factory
ConnectionListener 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 information
javax.resource.ResourceException - for any error
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 errorint getConnectionCount()
int getInUseConnectionCount()
int getConnectionCreatedCount()
int getConnectionDestroyedCount()
void shutdown()
long getAvailableConnectionCount()
int getMaxConnectionsInUseCount()
void flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||