finalizeReferent() method which a background thread invokes
after the garbage collector reclaims the referent. This is a simpler alternative to using a
java.lang.ref.ReferenceQueue .
Unlike a normal phantom reference, this reference will be cleared automatically.
| Access | Constructor and Description |
|---|---|
| protected | FinalizablePhantomReference(T
to phantom reference referent, FinalizableReferenceQueue that should finalize the referent queue)Constructs a new finalizable phantom reference. |
| FinalizablePhantomReference | back to summary |
|---|---|
| protected FinalizablePhantomReference(T referent, FinalizableReferenceQueue queue) Constructs a new finalizable phantom reference.
| |