Package com.complexible.common.pool
Class ApachePoolConfig<T>
java.lang.Object
com.complexible.common.pool.PoolConfig<T,Exception>
com.complexible.common.pool.ApachePoolConfig<T>
Abstract base class for instantiating a pool backed by Apache Pool. Be careful that the PoolableObjectFactory passed into the config creates objects of the correct type or you will end up with runtime cast exceptions.
- Since:
- 0.5.1
- Version:
- 0.7
- Author:
- Michael Grove
-
Field Summary
FieldsFields inherited from class com.complexible.common.pool.PoolConfig
mConfig, mMinPool -
Constructor Summary
ConstructorsConstructorDescriptionApachePoolConfig(org.apache.commons.pool.PoolableObjectFactory<T> theFactory) -
Method Summary
Methods inherited from class com.complexible.common.pool.PoolConfig
blockAtCapacity, expiration, failAtCapacity, growAtCapacity, maxIdle, maxPool, minPool, noExpiration
-
Field Details
-
mFactory
-
-
Constructor Details
-
ApachePoolConfig
-
-
Method Details
-
create
Create the Pool- Specified by:
createin classPoolConfig<T,Exception> - Returns:
- the pool
-