|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.middleware.ReferenceCountedDelayedDestroy
A base class that supports reference counting and delayed
destruction. Specifically, this class provides a
destroy method that waits until the reference count
becomes zero before returning. Subclasses of this class that need
to perform class-specific destruction actions should do so by
overriding the destroy method as follows:
public void destroy () {
super.destroy();
...
}
$Log: ReferenceCountedDelayedDestroy.java,v $ Revision 1.1 2001/08/11 04:23:49 gjanee Initial revision
| Constructor Summary | |
ReferenceCountedDelayedDestroy()
Initializes the reference count to zero. |
|
| Method Summary | |
void |
destroy()
Waits until the reference count becomes zero and then marks the object as being destroyed. |
void |
reference()
Increments the reference count. |
void |
release()
Decrements the reference count. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReferenceCountedDelayedDestroy()
| Method Detail |
public void reference()
public void release()
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||