public class CleanupTaskWeakReference
extends java.lang.ref.WeakReference<java.lang.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,
java.lang.Object referent,
java.lang.ref.ReferenceQueue<java.lang.Object> referenceQueue) |
Modifier and Type | Method and Description |
---|---|
CleanupTask |
task() |
public CleanupTaskWeakReference(CleanupTask task, java.lang.Object referent, java.lang.ref.ReferenceQueue<java.lang.Object> referenceQueue)
public CleanupTask task()