|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resource.connectionmanager.InternalManagedConnectionPool
public class InternalManagedConnectionPool
The internal pool implementation
Nested Class Summary | |
---|---|
static class |
InternalManagedConnectionPool.PoolParams
|
Constructor Summary | |
---|---|
protected |
InternalManagedConnectionPool(javax.resource.spi.ManagedConnectionFactory mcf,
ConnectionListenerFactory clf,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
InternalManagedConnectionPool.PoolParams poolParams,
org.jboss.logging.Logger log)
Create a new internal pool |
Method Summary | |
---|---|
void |
fillToMin()
|
void |
flush()
|
long |
getAvailableConnections()
|
ConnectionListener |
getConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
todo distinguish between connection dying while match called and bad match strategy. |
int |
getConnectionCount()
|
int |
getConnectionCreatedCount()
|
int |
getConnectionDestroyedCount()
|
int |
getConnectionInUseCount()
|
int |
getMaxConnectionsInUseCount()
|
protected void |
initialize()
Initialize the pool |
void |
removeTimedOut()
|
void |
returnConnection(ConnectionListener cl,
boolean kill)
|
void |
shutdown()
|
void |
shutdownWithoutClear()
For testing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected InternalManagedConnectionPool(javax.resource.spi.ManagedConnectionFactory mcf, ConnectionListenerFactory clf, Subject subject, javax.resource.spi.ConnectionRequestInfo cri, InternalManagedConnectionPool.PoolParams poolParams, org.jboss.logging.Logger log)
mcf
- the managed connection factorysubject
- the subjectcri
- the connection request informationpoolParams
- the pooling parameterslog
- the logMethod Detail |
---|
protected void initialize()
public long getAvailableConnections()
public int getMaxConnectionsInUseCount()
public int getConnectionInUseCount()
public ConnectionListener getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
javax.resource.ResourceException
public void returnConnection(ConnectionListener cl, boolean kill)
public void flush()
public void removeTimedOut()
public void shutdownWithoutClear()
public void shutdown()
public void fillToMin()
public int getConnectionCount()
public int getConnectionCreatedCount()
public int getConnectionDestroyedCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |