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 . |
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.
|
Modifier and Type | Method and Description |
---|---|
PooledObjectFactory<T> |
GenericObjectPool.getFactory()
Obtain a reference to the factory used to create, destroy and validate
the objects used by this pool.
|
PooledObjectFactory<T> |
SoftReferenceObjectPool.getFactory()
Returns the
PooledObjectFactory used by this pool to create and
manage object instances. |
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. |
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.