public class CleanupTaskWeakReference
extends java.lang.ref.WeakReference<Object>
When the referent object becomes only weakly reachable, the corresponding CleanupTaskWeakReference is automatically added to the given reference queue.
Constructor and Description |
---|
CleanupTaskWeakReference(CleanupTask task,
Object referent,
java.lang.ref.ReferenceQueue<Object> referenceQueue) |
Modifier and Type | Method and Description |
---|---|
CleanupTask |
task() |
public CleanupTaskWeakReference(CleanupTask task, Object referent, java.lang.ref.ReferenceQueue<Object> referenceQueue)
public CleanupTask task()