Top Description Constructors Methods
jnr.ffi.util.ref

public abstract Class FinalizableSoftReference<T>

extends SoftReference<T>
implements FinalizableReference
Class Inheritance
All Implemented Interfaces
jnr.ffi.util.ref.FinalizableReference
Imports
java.lang.ref.SoftReference

Soft reference with a 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.
Author
Bob Lee
Since
2.0 (imported from Google Collections Library)

Constructor Summary

AccessConstructor and Description
protected
FinalizableSoftReference(T
to softly reference
referent
,
FinalizableReferenceQueue
that should finalize the referent
queue
)

Constructs a new finalizable soft reference.

Method Summary

Inherited from java.lang.ref.SoftReference:
get

Constructor Detail

FinalizableSoftReferenceback to summary
protected FinalizableSoftReference(T referent, FinalizableReferenceQueue queue)

Constructs a new finalizable soft reference.

Parameters
referent:T

to softly reference

queue:FinalizableReferenceQueue

that should finalize the referent