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.createObjectPool(PoolableConnectionFactory factory,
GenericObjectPoolConfig poolConfig,
AbandonedConfig abandonedConfig)
Creates an object pool used to provide pooling support for
JDBC connections . |
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 jmxObjectName,
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.
|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
Connection conn,
ObjectPool<PoolableConnection> pool,
Collection<String> disconnectSqlCodes,
boolean fastFailValidation)
Create a PoolableManagedConnection.
|
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.