Package com.google.common.base
Class FinalizableReferenceQueue
java.lang.Object
com.google.common.base.FinalizableReferenceQueue
- All Implemented Interfaces:
Closeable
,AutoCloseable
@Deprecated(since="2022-12-01")
public class FinalizableReferenceQueue
extends Object
implements Closeable
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
A reference queue with an associated background thread that dequeues references and invokes
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.
- Since:
- 2.0 (imported from Google Collections Library)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FinalizableReferenceQueue
public FinalizableReferenceQueue()Deprecated.Constructs a new queue.
-
-
Method Details
-
close
public void close()Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-