|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomObjectPool
Custom object pools must implement this interface. Don't synchronize the methods of your implementation. Your implementation is wrapped by an internal ObjectPool implementation that adds synchronization when it is created using the ObjectPoolManager.getPool method. When a fast pool is created then your implementation runs unsynchronized.
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 | |
---|---|
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. |
Methods inherited from interface com.ibm.websphere.asynchbeans.pool.ObjectPool |
---|
getObject, returnObject |
Method Detail |
---|
void setProperties(java.util.Map props)
props
- The parameters.void flushPool()
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |