Package | Description |
---|---|
org.datanucleus.store.rdbms.connectionpool | |
org.datanucleus.store.rdbms.datasource.dbcp |
Repackaged Apache DBCP connection pool.
|
org.datanucleus.store.rdbms.datasource.dbcp.managed |
Repackaged Apache DBCP connection pool.
|
org.datanucleus.store.rdbms.datasource.dbcp.pool |
Repackaged Apache DBCP connection pool.
|
org.datanucleus.store.rdbms.datasource.dbcp.pool.impl |
Repackaged Apache DBCP connection pool.
|
Constructor and Description |
---|
DBCPConnectionPool(PoolingDataSource ds,
ObjectPool pool) |
Modifier and Type | Class and Description |
---|---|
class |
AbandonedObjectPool
An implementation of a Jakarta-Commons ObjectPool which
tracks JDBC connections and can recover abandoned db connections.
|
Modifier and Type | Field and Description |
---|---|
protected ObjectPool |
PoolableConnectionFactory._pool |
protected ObjectPool |
PoolingDataSource._pool |
protected ObjectPool |
PoolableConnection._pool
The pool to which I should return.
|
Modifier and Type | Method and Description |
---|---|
ObjectPool |
PoolingDriver.getConnectionPool(String name) |
ObjectPool |
PoolableConnectionFactory.getPool()
Returns the
ObjectPool in which Connection s are pooled. |
ObjectPool |
PoolingDriver.getPool(String name)
Deprecated.
This will be removed in a future version of DBCP.
|
Modifier and Type | Method and Description |
---|---|
void |
PoolingDriver.registerPool(String name,
ObjectPool pool) |
void |
PoolableConnectionFactory.setPool(ObjectPool pool)
Sets the
ObjectPool in which to pool Connection s. |
void |
PoolingDataSource.setPool(ObjectPool pool) |
Constructor and Description |
---|
PoolableConnection(Connection conn,
ObjectPool pool) |
PoolableConnection(Connection conn,
ObjectPool pool,
AbandonedConfig config) |
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
boolean defaultReadOnly,
boolean defaultAutoCommit)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
boolean defaultReadOnly,
boolean defaultAutoCommit,
AbandonedConfig config)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
AbandonedConfig config)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
String defaultCatalog,
AbandonedConfig config)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
Boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
String defaultCatalog,
AbandonedConfig config)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
Collection connectionInitSqls,
boolean defaultReadOnly,
boolean defaultAutoCommit)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
Collection connectionInitSqls,
boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
Collection connectionInitSqls,
Boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
String defaultCatalog,
AbandonedConfig config)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
boolean defaultReadOnly,
boolean defaultAutoCommit)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
Boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
String defaultCatalog,
AbandonedConfig config)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
Collection connectionInitSqls,
boolean defaultReadOnly,
boolean defaultAutoCommit)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
Collection connectionInitSqls,
boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation)
Create a new PoolableConnectionFactory.
|
PoolableConnectionFactory(ConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
Collection connectionInitSqls,
Boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
String defaultCatalog,
AbandonedConfig config)
Create a new PoolableConnectionFactory.
|
PoolingDataSource(ObjectPool pool) |
Constructor and Description |
---|
ManagedConnection(ObjectPool pool,
TransactionRegistry transactionRegistry,
boolean accessToUnderlyingConnectionAllowed) |
ManagedDataSource(ObjectPool pool,
TransactionRegistry transactionRegistry)
Creates a ManagedDataSource which obtains connections from the specified pool and
manages them using the specified transaction registry.
|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
Connection conn,
ObjectPool pool)
Create a PoolableManagedConnection.
|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
Connection conn,
ObjectPool pool,
AbandonedConfig config)
Create a PoolableManagedConnection.
|
PoolableManagedConnectionFactory(XAConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
boolean defaultReadOnly,
boolean defaultAutoCommit)
Create a PoolableManagedConnectionFactory and attach it to a connection pool.
|
PoolableManagedConnectionFactory(XAConnectionFactory connFactory,
ObjectPool pool,
KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
Collection connectionInitSqls,
Boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
String defaultCatalog,
AbandonedConfig config)
Create a PoolableManagedConnectionFactory and attach it to a connection pool.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseObjectPool
A simple base implementation of
ObjectPool . |
Modifier and Type | Method and Description |
---|---|
static ObjectPool |
PoolUtils.adapt(KeyedObjectPool keyedPool)
Adapt a
KeyedObjectPool instance to work where an ObjectPool is needed. |
static ObjectPool |
PoolUtils.adapt(KeyedObjectPool keyedPool,
Object key)
Adapt a
KeyedObjectPool instance to work where an ObjectPool is needed using the
specified key when delegating. |
static ObjectPool |
PoolUtils.checkedPool(ObjectPool pool,
Class type)
Wraps an
ObjectPool and dynamically checks the type of objects borrowed and returned to the pool. |
ObjectPool |
ObjectPoolFactory.createPool()
Create and return a new
ObjectPool . |
static ObjectPool |
PoolUtils.erodingPool(ObjectPool pool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static ObjectPool |
PoolUtils.erodingPool(ObjectPool pool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static ObjectPool |
PoolUtils.synchronizedPool(ObjectPool pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.
|
Modifier and Type | Method and Description |
---|---|
static KeyedObjectPool |
PoolUtils.adapt(ObjectPool pool)
Adapt an
ObjectPool to work where an KeyedObjectPool is needed. |
static ObjectPool |
PoolUtils.checkedPool(ObjectPool pool,
Class type)
Wraps an
ObjectPool and dynamically checks the type of objects borrowed and returned to the pool. |
static TimerTask |
PoolUtils.checkMinIdle(ObjectPool pool,
int minIdle,
long period)
Periodically check the idle object count for the pool.
|
static ObjectPool |
PoolUtils.erodingPool(ObjectPool pool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static ObjectPool |
PoolUtils.erodingPool(ObjectPool pool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static void |
PoolUtils.prefill(ObjectPool pool,
int count)
Call
addObject() on pool count number of times. |
static ObjectPool |
PoolUtils.synchronizedPool(ObjectPool pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.
|
Modifier and Type | Class and Description |
---|---|
class |
GenericObjectPool
A configurable
ObjectPool implementation. |
class |
SoftReferenceObjectPool
A
SoftReference based
ObjectPool . |
class |
StackObjectPool
A simple,
Stack -based ObjectPool implementation. |
Modifier and Type | Method and Description |
---|---|
ObjectPool |
GenericObjectPoolFactory.createPool()
Create and return a new
ObjectPool . |
ObjectPool |
StackObjectPoolFactory.createPool()
Create a StackObjectPool.
|
Copyright © 2023. All rights reserved.