public interface CustomObjectPool extends ObjectPool
Any custom implementation should behave like a default one in that it should automatically clear objects that implement java.util.Collection as well as handle the methods on objects that implement PoolableObject.
PMI statistics are not tracked for custom object pools.
Modifier and Type | Method and Description |
---|---|
void |
flushPool()
This is called when memory is short and the idle object list
should be trimmed to release memory for the system.
|
void |
setProperties(java.util.Map props)
This is called when the custom object pool is constructed.
|
getObject, returnObject
void setProperties(java.util.Map props)
props
- The parameters.void flushPool()