Package org.apache.commons.pool
Interface ObjectPoolFactory<T>
-
- Type Parameters:
T
- the type of objects held in this pool
- All Known Implementing Classes:
GenericObjectPoolFactory
,StackObjectPoolFactory
public interface ObjectPoolFactory<T>
A factory interface for creatingObjectPool
s.- Since:
- Pool 1.0
- Version:
- $Revision: 1222388 $ $Date: 2011-12-22 13:28:27 -0500 (Thu, 22 Dec 2011) $
- Author:
- Rodney Waldhoff
- See Also:
ObjectPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectPool<T>
createPool()
Create and return a newObjectPool
.
-
-
-
Method Detail
-
createPool
ObjectPool<T> createPool() throws IllegalStateException
Create and return a newObjectPool
.- Returns:
- a new
ObjectPool
- Throws:
IllegalStateException
- when this pool factory is not configured properly
-
-