public abstract class FinalizableSoftReference<T> extends SoftReference<T> implements FinalizableReference
finalizeReferent() method which a background
thread invokes after the garbage collector reclaims the referent. This is a
simpler alternative to using a ReferenceQueue.| Modifier | Constructor and Description |
|---|---|
protected |
FinalizableSoftReference(T referent,
FinalizableReferenceQueue queue)
Consructs a new finalizable soft reference.
|
getclear, enqueue, isEnqueuedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinalizeReferentprotected FinalizableSoftReference(T referent, FinalizableReferenceQueue queue)
referent - to softly referencequeue - that should finalize the referentCopyright © 2006-2012 Google, Inc.. All Rights Reserved.