Package org.apache.commons.pool
Interface KeyedObjectPoolFactory<K,V>
-
- Type Parameters:
K
- the type of keys in this poolV
- the type of objects held in this pool
- All Known Implementing Classes:
GenericKeyedObjectPoolFactory
,StackKeyedObjectPoolFactory
public interface KeyedObjectPoolFactory<K,V>
A factory for creatingKeyedObjectPool
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:
KeyedObjectPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyedObjectPool<K,V>
createPool()
Create a newKeyedObjectPool
.
-
-
-
Method Detail
-
createPool
KeyedObjectPool<K,V> createPool() throws IllegalStateException
Create a newKeyedObjectPool
.- Returns:
- a new
KeyedObjectPool
- Throws:
IllegalStateException
- when this pool factory is not configured properly
-
-