| java.lang.Object org.jacorb.notification.util.AbstractPoolable
All known Subclasses: org.jacorb.notification.engine.AbstractTask, org.jacorb.notification.filter.EvaluationContext, org.jacorb.notification.AbstractMessage,
AbstractPoolable | abstract public class AbstractPoolable implements Disposable(Code) | | Interface to indicate that a Object can be pooled. Objects can be pooled to spare ressources.
author: Alphonse Bendt version: $Id: AbstractPoolable.java,v 1.3 2005/08/21 13:38:40 alphonse.bendt Exp $ |
Field Summary | |
final protected Logger | logger_ |
Method Summary | |
public void | dispose() The call to this Method indicates that this Object is not needed by the user anymore. | abstract public void | reset() Reset the Object to an initial state. | public synchronized void | setObjectPool(AbstractObjectPool pool) Set the ObjectPool to which this instance should be returned. |
logger_ | final protected Logger logger_(Code) | | |
dispose | public void dispose()(Code) | | The call to this Method indicates that this Object is not needed by the user anymore. After a
call to dispose the Object can be returned to its ObjectPool. It's forbidden
to use the Object after release has been called as this may cause unexpected behaviour.
|
reset | abstract public void reset()(Code) | | Reset the Object to an initial state. Subclasses should override this method appropiately to
reset the instance to an initial state.
|
setObjectPool | public synchronized void setObjectPool(AbstractObjectPool pool)(Code) | | Set the ObjectPool to which this instance should be returned.
|
|
|