public abstract class FinalizableWeakReference<T> extends WeakReference<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 |
FinalizableWeakReference(T referent) |
| Modifier and Type | Method and Description |
|---|---|
void |
finalizeReferent()
Invoked on a background thread after the referent has been garbage
collected.
|
protected FinalizableWeakReference(T referent)
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.