| Package | Description |
|---|---|
| org.apache.commons.pool2 |
Object pooling API.
|
| org.apache.commons.pool2.impl |
Object pooling API implementations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasePooledObjectFactory<T>
A base implementation of
PoolableObjectFactory. |
private static class |
PoolUtils.SynchronizedPooledObjectFactory<T>
A fully synchronized PooledObjectFactory that wraps a
PooledObjectFactory and synchronizes access to the wrapped factory
methods.
|
| Modifier and Type | Field and Description |
|---|---|
private PooledObjectFactory<T> |
PoolUtils.SynchronizedPooledObjectFactory.factory
Wrapped factory
|
| Modifier and Type | Method and Description |
|---|---|
static <T> PooledObjectFactory<T> |
PoolUtils.synchronizedPooledFactory(PooledObjectFactory<T> factory)
Returns a synchronized (thread-safe) PooledObjectFactory backed by the
specified PooledObjectFactory.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> PooledObjectFactory<T> |
PoolUtils.synchronizedPooledFactory(PooledObjectFactory<T> factory)
Returns a synchronized (thread-safe) PooledObjectFactory backed by the
specified PooledObjectFactory.
|
| Constructor and Description |
|---|
SynchronizedPooledObjectFactory(PooledObjectFactory<T> factory)
Create a SynchronizedPoolableObjectFactory wrapping the given
factory.
|
| Modifier and Type | Field and Description |
|---|---|
private PooledObjectFactory<T> |
SoftReferenceObjectPool.factory
Factory to source pooled objects
|
private PooledObjectFactory<T> |
GenericObjectPool.factory |
| Modifier and Type | Method and Description |
|---|---|
PooledObjectFactory<T> |
SoftReferenceObjectPool.getFactory()
Returns the
PooledObjectFactory used by this pool to create and
manage object instances. |
PooledObjectFactory<T> |
GenericObjectPool.getFactory()
Obtain a reference to the factory used to create, destroy and validate
the objects used by this pool.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.lang.Class<?> |
PoolImplUtils.getFactoryType(java.lang.Class<? extends PooledObjectFactory> factory)
Identifies the concrete type of object that an object factory creates.
|
| Constructor and Description |
|---|
GenericObjectPool(PooledObjectFactory<T> factory)
Create a new
GenericObjectPool using defaults from
GenericObjectPoolConfig. |
GenericObjectPool(PooledObjectFactory<T> factory,
GenericObjectPoolConfig config)
Create a new
GenericObjectPool using a specific
configuration. |
GenericObjectPool(PooledObjectFactory<T> factory,
GenericObjectPoolConfig config,
AbandonedConfig abandonedConfig)
Create a new
GenericObjectPool that tracks and destroys
objects that are checked out, but never returned to the pool. |
SoftReferenceObjectPool(PooledObjectFactory<T> factory)
Create a
SoftReferenceObjectPool with the specified factory. |