com.ibm.websphere.asynchbeans.pool
Interface PoolableObject
- public interface PoolableObject
PoolableObject then the default object
pool implementation will call the init method when returning the object from
ObjectPool.getObject and call the returned method when ObjectPool.returnObject
is called.
Objects that implement java.util.Collection are automatically cleared when returned to
a default object pool.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
init()
This is called when the object is about to be reused from
the pool.
|
|
returned()
This is called when the object is returned to the pool.
|
Method Detail
init
- void init()
This is called when the object is about to be reused from
the pool.
returned
- void returned()
This is called when the object is returned to the pool.