Example usage for Java org.apache.commons.pool PoolUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
PoolableObjectFactory | adapt(final KeyedPoolableObjectFactory keyedFactory, final Object key) Adapt a KeyedPoolableObjectFactory instance to work where a PoolableObjectFactory is needed using the specified key when delegating. |
ObjectPool | adapt(final KeyedObjectPool keyedPool, final Object key) Adapt a KeyedObjectPool instance to work where an ObjectPool is needed using the specified key when delegating. |
ObjectPool | erodingPool(final ObjectPool pool) Returns a pool that adaptively decreases it's size when idle objects are no longer needed. |
KeyedObjectPool | erodingPool(final KeyedObjectPool keyedPool) Returns a pool that adaptively decreases it's size when idle objects are no longer needed. |
void | prefill(final ObjectPool pool, final int count) Call addObject() on pool count number of times. |
void | prefill(final KeyedObjectPool keyedPool, final Object key, final int count) Call addObject(Object) on keyedPool with key count number of times. |
void | prefill(final KeyedObjectPool keyedPool, final Collection keys, final int count) Call addObject(Object) on keyedPool with each key in keys for count number of times. |
ObjectPool | synchronizedPool(final ObjectPool pool) Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool. |
KeyedObjectPool | synchronizedPool(final KeyedObjectPool keyedPool) Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool. |
PoolableObjectFactory | synchronizedPoolableFactory(final PoolableObjectFactory factory) Returns a synchronized (thread-safe) PoolableObjectFactory backed by the specified PoolableObjectFactory. |
KeyedPoolableObjectFactory | synchronizedPoolableFactory( final KeyedPoolableObjectFactory keyedFactory) Returns a synchronized (thread-safe) KeyedPoolableObjectFactory backed by the specified KeyedPoolableObjectFactory. |