public class FinalizableReferenceQueue
extends java.lang.Object
implements java.io.Closeable
FinalizableReference.finalizeReferent()
on them.
Keep a strong reference to this object until all of the associated referents have been
finalized. If this object is garbage collected earlier, the backing thread will not invoke finalizeReferent()
on the remaining references.
Constructor and Description |
---|
FinalizableReferenceQueue()
Constructs a new queue.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |