| Package | Description |
|---|---|
| org.datanucleus.store.rdbms.datasource.dbcp2 |
This is a repackaged Apache Commons DBCP v2.1.1 and Apache Commons Pool v2.4.2.
|
| org.datanucleus.store.rdbms.datasource.dbcp2.pool2 |
This is a repackaged Apache Commons DBCP v2.1.1 and Apache Commons Pool v2.4.2.
|
| org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl |
This is a repackaged Apache Commons DBCP v2.1.1 and Apache Commons Pool v2.4.2.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PoolingConnection.setStatementPool(KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> pool) |
| Constructor and Description |
|---|
PoolableCallableStatement(CallableStatement stmt,
PStmtKey key,
KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> pool,
DelegatingConnection<Connection> conn)
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)
Call
addObject(Object) on keyedPool with each
key in keys for count number of times. |
static <K,V> void |
PoolUtils.prefill(KeyedObjectPool<K,V> keyedPool,
K key,
int count)
Call
addObject(Object) on keyedPool with
key count number of times. |
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.