|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagedConnectionPool

Represents a managed connection pool, which manages all connection listeners
| Method Summary | |
|---|---|
void |
fillToMin()
Fill to min |
void |
flush()
Flush idle connections |
void |
flush(boolean kill)
Flush |
int |
getActive()
Get number of active connections |
ConnectionListener |
getConnection(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,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration pc,
Pool p)
Initialize the managed connection pool |
boolean |
isEmpty()
Checks if the pool is empty or not |
boolean |
isFull()
Is the pool full ? |
boolean |
isIdle()
Is the pool idle ? |
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. |
| Methods inherited from interface org.jboss.jca.core.connectionmanager.pool.idle.IdleConnectionRemovalSupport |
|---|
removeIdleConnections |
| Method Detail |
|---|
void initialize(javax.resource.spi.ManagedConnectionFactory mcf,
ConnectionListenerFactory clf,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration pc,
Pool p)
mcf - The managed connection factoryclf - The connection listener factorysubject - The subjectcri - The connection request infopc - The pool configurationp - The pool
ConnectionListener getConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
subject - subjectcri - connection request info
javax.resource.ResourceException - exception
void returnConnection(ConnectionListener cl,
boolean kill)
cl - connection listenerkill - kill connectionboolean isEmpty()
boolean isFull()
boolean isIdle()
boolean isRunning()
int getActive()
void reenable()
void flush()
void flush(boolean kill)
kill - Kill all connectionsvoid shutdown()
void fillToMin()
void validateConnections()
throws Exception
Exception - for exceptionManagedConnectionPoolStatistics getStatistics()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||