public abstract class FinalizableSoftReference<T> extends SoftReference<T>
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) |
Modifier and Type | Method and Description |
---|---|
void |
finalizeReferent()
Invoked on a background thread after the referent has been garbage
collected.
|
get
clear, enqueue, isEnqueued
protected FinalizableSoftReference(T referent)
Copyright © 2013. All Rights Reserved.