Package jnr.ffi.util.ref
package jnr.ffi.util.ref
-
ClassDescriptionPhantom reference with a
finalizeReferent()
method which a background thread invokes after the garbage collector reclaims the referent.Implemented by references that have code to run after garbage collection of their referents.A reference queue with an associated background thread that dequeues references and invokesFinalizableReference.finalizeReferent()
on them.Soft reference with afinalizeReferent()
method which a background thread invokes after the garbage collector reclaims the referent.Weak reference with afinalizeReferent()
method which a background thread invokes after the garbage collector reclaims the referent.