| Package | Description |
|---|---|
| org.datanucleus.store.rdbms.connectionpool |
Package providing support for all major Connection Pools.
|
| 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.
|
| Constructor and Description |
|---|
DBCPConnectionPool(PoolingDataSource ds,
ObjectPool pool) |
| Modifier and Type | Field and Description |
|---|---|
protected static HashMap<String,ObjectPool<? extends Connection>> |
PoolingDriver.pools
The map of registered pools.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectPool<? extends Connection> |
PoolingDriver.getConnectionPool(String name) |
ObjectPool<PoolableConnection> |
PoolableConnectionFactory.getPool()
Returns the
ObjectPool in which Connections are pooled. |
protected ObjectPool<C> |
PoolingDataSource.getPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
PoolingDriver.registerPool(String name,
ObjectPool<? extends Connection> pool) |
void |
PoolableConnectionFactory.setPool(ObjectPool<PoolableConnection> pool)
Sets the
ObjectPool in which to pool Connections. |
| Constructor and Description |
|---|
PoolableConnection(Connection conn,
ObjectPool<PoolableConnection> pool,
ObjectName jmxName) |
PoolableConnection(Connection conn,
ObjectPool<PoolableConnection> pool,
ObjectName jmxName,
Collection<String> disconnectSqlCodes,
boolean fastFailValidation) |
PoolingDataSource(ObjectPool<C> pool) |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseObjectPool<T>
A simple base implementation of
ObjectPool. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ObjectPool<T> |
PoolUtils.erodingPool(ObjectPool<T> pool)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <T> ObjectPool<T> |
PoolUtils.erodingPool(ObjectPool<T> pool,
float factor)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <T> ObjectPool<T> |
PoolUtils.synchronizedPool(ObjectPool<T> pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified
ObjectPool.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> TimerTask |
PoolUtils.checkMinIdle(ObjectPool<T> pool,
int minIdle,
long period)
Periodically check the idle object count for the pool.
|
static <T> ObjectPool<T> |
PoolUtils.erodingPool(ObjectPool<T> pool)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <T> ObjectPool<T> |
PoolUtils.erodingPool(ObjectPool<T> pool,
float factor)
Returns a pool that adaptively decreases its size when idle objects are
no longer needed.
|
static <T> void |
PoolUtils.prefill(ObjectPool<T> pool,
int count)
Call
addObject() on pool count
number of times. |
static <T> ObjectPool<T> |
PoolUtils.synchronizedPool(ObjectPool<T> pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified
ObjectPool.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenericObjectPool<T>
A configurable
ObjectPool implementation. |
class |
SoftReferenceObjectPool<T>
A
SoftReference based ObjectPool. |
Copyright © 2020. All rights reserved.