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.Try to load Finalizer in its own class loader.Loads Finalizer directly using the current class loader.Loads Finalizer.class.Tries to load Finalizer from the system class loader.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.