Package | Description |
---|---|
org.datanucleus.store.rdbms.datasource.dbcp |
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.
|
Modifier and Type | Field and Description |
---|---|
protected KeyedObjectPool |
PoolablePreparedStatement._pool
The
KeyedObjectPool from which I was obtained. |
protected KeyedObjectPool |
PoolingConnection._pstmtPool
Pool of
PreparedStatement s. |
Constructor and Description |
---|
PoolableCallableStatement(CallableStatement stmt,
Object key,
KeyedObjectPool pool,
Connection conn)
Constructor.
|
PoolablePreparedStatement(PreparedStatement stmt,
Object key,
KeyedObjectPool pool,
Connection conn)
Constructor
|
PoolingConnection(Connection c,
KeyedObjectPool pool)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseKeyedObjectPool
A simple base implementation of
KeyedObjectPool . |
Modifier and Type | Method and Description |
---|---|
static KeyedObjectPool |
PoolUtils.adapt(ObjectPool pool)
Adapt an
ObjectPool to work where an KeyedObjectPool is needed. |
static KeyedObjectPool |
PoolUtils.checkedPool(KeyedObjectPool keyedPool,
Class type)
Wraps a
KeyedObjectPool and dynamically checks the type of objects borrowed and returned to the keyedPool. |
KeyedObjectPool |
KeyedObjectPoolFactory.createPool()
Create a new
KeyedObjectPool . |
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool,
float factor,
boolean perKey)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.synchronizedPool(KeyedObjectPool keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
|
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 KeyedObjectPool |
PoolUtils.checkedPool(KeyedObjectPool keyedPool,
Class type)
Wraps a
KeyedObjectPool and dynamically checks the type of objects borrowed and returned to the keyedPool. |
static Map |
PoolUtils.checkMinIdle(KeyedObjectPool keyedPool,
Collection keys,
int minIdle,
long period)
Periodically check the idle object count for each key in the
Collection keys in the keyedPool. |
static TimerTask |
PoolUtils.checkMinIdle(KeyedObjectPool keyedPool,
Object key,
int minIdle,
long period)
Periodically check the idle object count for the key in the keyedPool.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool,
float factor,
boolean perKey)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static void |
PoolUtils.prefill(KeyedObjectPool keyedPool,
Collection keys,
int count)
Call
addObject(Object) on keyedPool with each key in keys for
count number of times. |
static void |
PoolUtils.prefill(KeyedObjectPool keyedPool,
Object key,
int count)
Call
addObject(Object) on keyedPool with key count
number of times. |
static KeyedObjectPool |
PoolUtils.synchronizedPool(KeyedObjectPool keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
|
Modifier and Type | Class and Description |
---|---|
class |
GenericKeyedObjectPool
A configurable
KeyedObjectPool implementation. |
class |
StackKeyedObjectPool
A simple,
Stack -based KeyedObjectPool implementation. |
Modifier and Type | Method and Description |
---|---|
KeyedObjectPool |
GenericKeyedObjectPoolFactory.createPool()
Create a new GenericKeyedObjectPool with the currently configured properties.
|
KeyedObjectPool |
StackKeyedObjectPoolFactory.createPool()
Create a StackKeyedObjectPool with current property settings.
|
Copyright © 2023. All rights reserved.