org.jacorb.notification.util
Class AbstractPoolable
java.lang.Object
org.jacorb.notification.util.AbstractPoolable
- All Implemented Interfaces:
- org.picocontainer.Disposable
- Direct Known Subclasses:
- AbstractMessage, AbstractTask, EvaluationContext
public abstract class AbstractPoolable
- extends Object
- implements Disposable
Interface to indicate that a Object can be pooled. Objects can be pooled to spare ressources.
- Author:
- Alphonse Bendt
|
Field Summary |
protected org.slf4j.Logger |
logger_
|
|
Method Summary |
void |
dispose()
The call to this Method indicates that this Object is not needed by the user anymore. |
abstract void |
reset()
Reset the Object to an initial state. |
void |
setObjectPool(AbstractObjectPool pool)
Set the ObjectPool to which this instance should be returned. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger_
protected final org.slf4j.Logger logger_
AbstractPoolable
public AbstractPoolable()
dispose
public void dispose()
- 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.
- Specified by:
dispose in interface org.picocontainer.Disposable
setObjectPool
public void setObjectPool(AbstractObjectPool pool)
- Set the ObjectPool to which this instance should be returned.
reset
public abstract void reset()
- Reset the Object to an initial state. Subclasses should override this method appropiately to
reset the instance to an initial state.
Copyright © 2015 JacORB. All rights reserved.