public interface ManagedConnectionPool extends IdleConnectionRemovalSupport
Modifier and Type | Method and Description |
---|---|
void |
fillToMin()
Fill to min
|
void |
flush()
Flush idle connections
|
void |
flush(boolean kill)
Flush
|
ConnectionListener |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Returns a connection listener that wraps managed connection.
|
ManagedConnectionPoolStatistics |
getStatistics()
Get statistics
|
void |
initialize(javax.resource.spi.ManagedConnectionFactory mcf,
ConnectionListenerFactory clf,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
PoolConfiguration pc,
Pool p)
Initialize the managed connection pool
|
boolean |
isEmpty()
Checks if the pool is empty or not
|
boolean |
isRunning()
Checks if the pool is running or not
|
void |
reenable()
Reenable a pool
|
void |
returnConnection(ConnectionListener cl,
boolean kill)
Return connection to the pool.
|
void |
shutdown()
Shutdown
|
void |
validateConnections()
Validate connecitons.
|
removeIdleConnections
void initialize(javax.resource.spi.ManagedConnectionFactory mcf, ConnectionListenerFactory clf, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri, PoolConfiguration pc, Pool p)
mcf
- The managed connection factoryclf
- The connection listener factorysubject
- The subjectcri
- The connection request infopc
- The pool configurationp
- The poolConnectionListener getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
subject
- subjectcri
- connection request infojavax.resource.ResourceException
- exceptionvoid returnConnection(ConnectionListener cl, boolean kill)
cl
- connection listenerkill
- kill connectionboolean isEmpty()
boolean isRunning()
void reenable()
void flush()
void flush(boolean kill)
kill
- Kill all connectionsvoid shutdown()
void fillToMin()
void validateConnections() throws java.lang.Exception
java.lang.Exception
- for exceptionManagedConnectionPoolStatistics getStatistics()
Copyright ? 2008-2009 Red Hat Middleware LLC (http://www.jboss.com/)