Package com.complexible.common.pool
Class ApachePoolImpl<T>
- java.lang.Object
-
- com.complexible.common.pool.ApachePoolImpl<T>
-
-
Constructor Summary
Constructors Constructor Description ApachePoolImpl(org.apache.commons.pool.PoolableObjectFactory<T> theFactory, int theMin, org.apache.commons.pool.impl.GenericObjectPool.Config theConfig)
Create a new ApachePoolImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
obtain()
Get an object from the poolvoid
release(T theObj)
Return the object to the poolvoid
shutdown()
Shutdown the pool
-
-
-
Constructor Detail
-
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 Detail
-
obtain
public T obtain() throws java.lang.Exception
Get an object from the pool
-
shutdown
public void shutdown() throws java.lang.Exception
Shutdown the pool
-
-