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 | 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)
Gets the connection pool for the given name.
|
protected ObjectPool<C> |
PoolingDataSource.getPool() |
ObjectPool<PoolableConnection> |
PoolableConnectionFactory.getPool()
Returns the
ObjectPool in which Connection s are pooled. |
Modifier and Type | Method and Description |
---|---|
void |
PoolingDriver.registerPool(String name,
ObjectPool<? extends Connection> pool)
Registers a named pool.
|
void |
PoolableConnectionFactory.setPool(ObjectPool<PoolableConnection> pool)
Sets the
ObjectPool in which to pool Connection s. |
Constructor and Description |
---|
PoolableConnection(Connection conn,
ObjectPool<PoolableConnection> pool,
ObjectName jmxName) |
PoolableConnection(Connection conn,
ObjectPool<PoolableConnection> pool,
ObjectName jmxObjectName,
Collection<String> disconnectSqlCodes,
boolean fastFailValidation) |
PoolingDataSource(ObjectPool<C> pool)
Constructs a new instance backed by the given connection 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)
Deprecated.
Use
addObjects(int) . |
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.