|
|||||||||
| Home >> All >> org >> jboss >> resource >> [ connectionmanager overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jboss.resource.connectionmanager
Class JBossManagedConnectionPool.PoolBySubjectAndCri

java.lang.Objectorg.jboss.resource.connectionmanager.JBossManagedConnectionPool.BasePool
org.jboss.resource.connectionmanager.JBossManagedConnectionPool.PoolBySubjectAndCri
- All Implemented Interfaces:
- ManagedConnectionPool
- Enclosing class:
- JBossManagedConnectionPool
- private static class JBossManagedConnectionPool.PoolBySubjectAndCri
- extends JBossManagedConnectionPool.BasePool
Pooling by subject and connection request information
| Constructor Summary | |
JBossManagedConnectionPool.PoolBySubjectAndCri(javax.resource.spi.ManagedConnectionFactory mcf,
InternalManagedConnectionPool.PoolParams poolParams,
boolean noTxSeparatePools,
org.jboss.logging.Logger log)
|
|
| Method Summary | |
void |
flush()
flush the pool |
long |
getAvailableConnectionCount()
|
ConnectionListener |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Get a connection |
int |
getConnectionCount()
|
int |
getConnectionCreatedCount()
|
int |
getConnectionDestroyedCount()
|
int |
getInUseConnectionCount()
Return the inuse count |
protected java.lang.Object |
getKey(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
boolean separateNoTx)
Retrieve the key for this request |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
JBossManagedConnectionPool.PoolBySubjectAndCri
public JBossManagedConnectionPool.PoolBySubjectAndCri(javax.resource.spi.ManagedConnectionFactory mcf, InternalManagedConnectionPool.PoolParams poolParams, boolean noTxSeparatePools, org.jboss.logging.Logger log)
| Method Detail |
getKey
protected java.lang.Object getKey(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri, boolean separateNoTx) throws javax.resource.ResourceException
- Description copied from class:
JBossManagedConnectionPool.BasePool - Retrieve the key for this request
- Specified by:
getKeyin classJBossManagedConnectionPool.BasePool
getManagedConnectionFactory
public javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
- Description copied from interface:
ManagedConnectionPool - Retrieve the managed connection factory for this pool
- Specified by:
getManagedConnectionFactoryin interfaceManagedConnectionPool
setConnectionListenerFactory
public void setConnectionListenerFactory(ConnectionListenerFactory clf)
- Description copied from interface:
ManagedConnectionPool - Set the connection listener factory
- Specified by:
setConnectionListenerFactoryin interfaceManagedConnectionPool
getInUseConnectionCount
public int getInUseConnectionCount()
- Return the inuse count
- Specified by:
getInUseConnectionCountin interfaceManagedConnectionPool
getConnection
public ConnectionListener getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
- Description copied from interface:
ManagedConnectionPool - Get a connection
- Specified by:
getConnectionin interfaceManagedConnectionPool
returnConnection
public void returnConnection(ConnectionListener cl, boolean kill) throws javax.resource.ResourceException
- Description copied from interface:
ManagedConnectionPool - Return a connection
- Specified by:
returnConnectionin interfaceManagedConnectionPool
getConnectionCount
public int getConnectionCount()
- Specified by:
getConnectionCountin interfaceManagedConnectionPool
getConnectionCreatedCount
public int getConnectionCreatedCount()
- Specified by:
getConnectionCreatedCountin interfaceManagedConnectionPool
getConnectionDestroyedCount
public int getConnectionDestroyedCount()
- Specified by:
getConnectionDestroyedCountin interfaceManagedConnectionPool
getAvailableConnectionCount
public long getAvailableConnectionCount()
- Specified by:
getAvailableConnectionCountin interfaceManagedConnectionPool
getMaxConnectionsInUseCount
public int getMaxConnectionsInUseCount()
- Specified by:
getMaxConnectionsInUseCountin interfaceManagedConnectionPool
shutdown
public void shutdown()
- Description copied from interface:
ManagedConnectionPool - shutdown the pool
- Specified by:
shutdownin interfaceManagedConnectionPool
flush
public void flush()
- Description copied from interface:
ManagedConnectionPool - flush the pool
- Specified by:
flushin interfaceManagedConnectionPool
|
|||||||||
| Home >> All >> org >> jboss >> resource >> [ connectionmanager overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC