Package | Description |
---|---|
org.apache.commons.dbcp2 |
Database Connection Pool API.
|
org.apache.commons.dbcp2.managed |
This package provides support for pooling of ManagedConnections.
|
Modifier and Type | Method and Description |
---|---|
protected GenericObjectPool<PoolableConnection> |
BasicDataSource.getConnectionPool() |
ObjectPool<PoolableConnection> |
PoolableConnectionFactory.getPool()
Returns the
ObjectPool in which Connection s are pooled. |
PooledObject<PoolableConnection> |
PoolableConnectionFactory.makeObject() |
Modifier and Type | Method and Description |
---|---|
void |
PoolableConnectionFactory.validateConnection(PoolableConnection conn) |
Modifier and Type | Method and Description |
---|---|
void |
PoolableConnectionFactory.activateObject(PooledObject<PoolableConnection> p) |
void |
PoolableConnectionFactory.destroyObject(PooledObject<PoolableConnection> p) |
void |
PoolableConnectionFactory.passivateObject(PooledObject<PoolableConnection> p) |
void |
PoolableConnectionFactory.setPool(ObjectPool<PoolableConnection> pool)
Sets the
ObjectPool in which to pool Connection s. |
boolean |
PoolableConnectionFactory.validateObject(PooledObject<PoolableConnection> p) |
Constructor and Description |
---|
PoolableConnection(Connection conn,
ObjectPool<PoolableConnection> pool,
ObjectName jmxName) |
PoolableConnection(Connection conn,
ObjectPool<PoolableConnection> pool,
ObjectName jmxName,
Collection<String> disconnectSqlCodes,
boolean fastFailValidation) |
Modifier and Type | Class and Description |
---|---|
class |
PoolableManagedConnection
PoolableConnection that unregisters from TransactionRegistry on Connection real destroy.
|
Modifier and Type | Method and Description |
---|---|
PooledObject<PoolableConnection> |
PoolableManagedConnectionFactory.makeObject()
Uses the configured XAConnectionFactory to create a
PoolableManagedConnection . |
Constructor and Description |
---|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
Connection conn,
ObjectPool<PoolableConnection> pool)
Create a PoolableManagedConnection.
|
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.