|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the object type.public interface Finalizer<T>
An interface to reference queues for referents to be finalized before garbage collected.
| Method Summary | |
|---|---|
PhantomReference<T> |
addPhantomListener(T referent,
QueueListener listener)
Adds a new phantom reference to the reference queue and registers its listener. |
SoftReference<T> |
addSoftListener(T referent,
QueueListener listener)
Adds a new soft reference to the reference queue and registers its listener. |
WeakReference<T> |
addWeakListener(T referent,
QueueListener listener)
Adds a new weak reference to the reference queue and registers its listener. |
void |
removeListener(Reference<?> reference)
Removes the registered listener of a reference. |
| Methods inherited from interface org.norther.tammi.core.thread.Executable |
|---|
getExecutorName, setExecutorName |
| Methods inherited from interface org.norther.tammi.core.base.Startable |
|---|
isStarted, start, stop |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Method Detail |
|---|
PhantomReference<T> addPhantomListener(T referent,
QueueListener listener)
referent - the referent of the reference.listener - a listener for the enqueued referent.
WeakReference<T> addWeakListener(T referent,
QueueListener listener)
referent - the referent of the reference.listener - a listener for the enqueued referent.
SoftReference<T> addSoftListener(T referent,
QueueListener listener)
referent - the referent of the reference.listener - a listener for the enqueued referent.
void removeListener(Reference<?> reference)
reference - the reference.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||