public class OnePool extends AbstractPrefillPool
Constructor and Description |
---|
OnePool(javax.resource.spi.ManagedConnectionFactory mcf,
PoolConfiguration pc,
boolean noTxSeparatePools,
boolean sharable)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
emptyManagedConnectionPool(ManagedConnectionPool pool)
Remove the matching managed connection pool if the pool is empty
|
protected java.lang.Object |
getKey(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
boolean separateNoTx)
Retrieve the key for this request.
|
CoreLogger |
getLogger()
Get the logger
|
boolean |
testConnection()
Test if a connection can be obtained
|
boolean |
testConnection(javax.resource.spi.ConnectionRequestInfo cri,
javax.security.auth.Subject subject)
Test if a connection can be obtained
|
prefill
findConnectionListener, findConnectionListener, flush, flush, flush, getCapacity, getConnection, getConnectionManager, getManagedConnectionFactory, getManagedConnectionPool, getManagedConnectionPools, getName, getStatistics, getTransactionIntegration, getTransactionManager, getTransactionSynchronizationRegistry, internalTestConnection, isFIFO, isSharable, isShutdown, returnConnection, setCapacity, setConnectionManager, setName, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findConnectionListener, findConnectionListener, getCapacity, getConnection, getManagedConnectionFactory, isFIFO, isSharable, isShutdown, returnConnection, setCapacity, setConnectionManager, setName, shutdown
public OnePool(javax.resource.spi.ManagedConnectionFactory mcf, PoolConfiguration pc, boolean noTxSeparatePools, boolean sharable)
mcf
- managed connection factorypc
- pool configurationnoTxSeparatePools
- notx seperate poolsharable
- Are the connections sharableprotected java.lang.Object getKey(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri, boolean separateNoTx)
getKey
in class AbstractPool
subject
- the subjectcri
- the connection request informationseparateNoTx
- separateNoTxpublic void emptyManagedConnectionPool(ManagedConnectionPool pool)
emptyManagedConnectionPool
in class AbstractPool
pool
- The poolpublic boolean testConnection()
testConnection
in interface Pool
testConnection
in class AbstractPool
public boolean testConnection(javax.resource.spi.ConnectionRequestInfo cri, javax.security.auth.Subject subject)
testConnection
in interface Pool
testConnection
in class AbstractPool
cri
- Optional connection request info objectsubject
- Optional subjectpublic CoreLogger getLogger()
getLogger
in class AbstractPool
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)