Java org.apache.commons.pool PoolUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.pool PoolUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.pool PoolUtils.

The text is from its open source code.

Method

PoolableObjectFactoryadapt(final KeyedPoolableObjectFactory keyedFactory, final Object key)
Adapt a KeyedPoolableObjectFactory instance to work where a PoolableObjectFactory is needed using the specified key when delegating.
ObjectPooladapt(final KeyedObjectPool keyedPool, final Object key)
Adapt a KeyedObjectPool instance to work where an ObjectPool is needed using the specified key when delegating.
ObjectPoolerodingPool(final ObjectPool pool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
KeyedObjectPoolerodingPool(final KeyedObjectPool keyedPool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
voidprefill(final ObjectPool pool, final int count)
Call addObject() on pool count number of times.
voidprefill(final KeyedObjectPool keyedPool, final Object key, final int count)
Call addObject(Object) on keyedPool with key count number of times.
voidprefill(final KeyedObjectPool keyedPool, final Collection keys, final int count)
Call addObject(Object) on keyedPool with each key in keys for count number of times.
ObjectPoolsynchronizedPool(final ObjectPool pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.
KeyedObjectPoolsynchronizedPool(final KeyedObjectPool keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
PoolableObjectFactorysynchronizedPoolableFactory(final PoolableObjectFactory factory)
Returns a synchronized (thread-safe) PoolableObjectFactory backed by the specified PoolableObjectFactory.
KeyedPoolableObjectFactorysynchronizedPoolableFactory( final KeyedPoolableObjectFactory keyedFactory)
Returns a synchronized (thread-safe) KeyedPoolableObjectFactory backed by the specified KeyedPoolableObjectFactory.