com.ibm.websphere.asynchbeans.pool
Interface CustomObjectPool
All Superinterfaces:
- 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.
Method Summary
Modifier and Type | Method and Description |
---|---|
|
flushPool()
This is called when memory is short and the idle object list
should be trimmed to release memory for the system.
|
|
setProperties(java.util.Map props)
This is called when the custom object pool is constructed.
|
Methods inherited from interface com.ibm.websphere.asynchbeans.pool.ObjectPool |
---|
getObject, returnObject |
Method Detail
setProperties
- void setProperties(java.util.Map props)
This is called when the custom object pool is constructed. A
map of the supplied parameters is supplied. These are the
parameters supplied by the administrator who defined the
custom pool.
Parameters:
props
- The parameters. flushPool
- void flushPool()
This is called when memory is short and the idle object list
should be trimmed to release memory for the system.