Package com.complexible.common.pool
Class ApachePoolImpl<T>
java.lang.Object
com.complexible.common.pool.ApachePoolImpl<T>
Pool implementation using an Apache object pool
- Since:
- 3.1
- Version:
- 0.5.1
- Author:
- Michael Grove
-
Constructor Summary
ConstructorsConstructorDescriptionApachePoolImpl(org.apache.commons.pool.PoolableObjectFactory<T> theFactory, int theMin, org.apache.commons.pool.impl.GenericObjectPool.Config theConfig) Create a new ApachePoolImpl -
Method Summary
-
Constructor Details
-
ApachePoolImpl
public ApachePoolImpl(org.apache.commons.pool.PoolableObjectFactory<T> theFactory, int theMin, org.apache.commons.pool.impl.GenericObjectPool.Config theConfig) Create a new ApachePoolImpl- Parameters:
theFactory- the object factorytheMin- the min # of objects in the pooltheConfig- the configuration of the pool
-
-
Method Details
-
obtain
Get an object from the pool -
shutdown
Shutdown the pool -
release
Return the object to the pool
-