org.jacorb.notification.interfaces
Class AbstractPoolable
java.lang.Object
org.jacorb.notification.interfaces.AbstractPoolable
- Configurable, Disposable
public abstract class AbstractPoolable
extends java.lang.Object
Interface to indicate that a Object can be pooled. Objects can be
pooled to spare ressources.
Version:
- Alphonse Bendt
void | configure(Configuration conf)
|
void | dispose() - The call to this Method indicates that this Object is not
needed by the user anymore.
|
void | reset() - Reset the Object to an initial state.
|
void | setObjectPool(AbstractObjectPool pool) - Set the ObjectPool that administers this instance.
|
logger_
protected Logger logger_
configure
public void configure(Configuration conf)
dispose
public void dispose()
The call to this Method indicates that this Object is not
needed by the user anymore. After a call to
release
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.
- dispose in interface Disposable
reset
public void reset()
Reset the Object to an initial state. Subclasses should
override this method appropiately to reset the instance to an
initial state.
setObjectPool
public void setObjectPool(AbstractObjectPool pool)
Set the ObjectPool that administers this instance.