Package | Description |
---|---|
org.datanucleus.store.rdbms.datasource.dbcp2 |
This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0.
|
org.datanucleus.store.rdbms.datasource.dbcp2.pool2 |
This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0.
|
org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl |
This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0.
|
Modifier and Type | Method and Description |
---|---|
void |
PoolingConnection.setStatementPool(KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> pool)
Sets the prepared statement pool.
|
Constructor and Description |
---|
PoolableCallableStatement(CallableStatement callableStatement,
PStmtKey key,
KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> pool,
DelegatingConnection<Connection> connection)
Constructor.
|
PoolablePreparedStatement(PreparedStatement stmt,
K key,
KeyedObjectPool<K,PoolablePreparedStatement<K>> pool,
DelegatingConnection<?> conn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool,
float factor)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool,
float factor,
boolean perKey)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.synchronizedPool(KeyedObjectPool<K,V> keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the
specified KeyedObjectPool.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Map<K,TimerTask> |
PoolUtils.checkMinIdle(KeyedObjectPool<K,V> keyedPool,
Collection<K> keys,
int minIdle,
long period)
Periodically check the idle object count for each key in the
Collection keys in the keyedPool. |
static <K,V> TimerTask |
PoolUtils.checkMinIdle(KeyedObjectPool<K,V> keyedPool,
K key,
int minIdle,
long period)
Periodically check the idle object count for the key in the keyedPool.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool,
float factor)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool,
float factor,
boolean perKey)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <K,V> void |
PoolUtils.prefill(KeyedObjectPool<K,V> keyedPool,
Collection<K> keys,
int count)
Deprecated.
|
static <K,V> void |
PoolUtils.prefill(KeyedObjectPool<K,V> keyedPool,
K key,
int count)
Deprecated.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.synchronizedPool(KeyedObjectPool<K,V> keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the
specified KeyedObjectPool.
|
Modifier and Type | Class and Description |
---|---|
class |
GenericKeyedObjectPool<K,T>
A configurable
KeyedObjectPool implementation. |
Copyright © 2020. All rights reserved.