public abstract class FinalizableSoftReference<T> extends SoftReference<T>
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.
|
getclear, enqueue, isEnqueuedprotected FinalizableSoftReference(T referent)
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.