Documentation of 'com.google.common.base.FinalizableReferenceQueue' Java class
FinalizableReferenceQueue
com.google.common.base

Class FinalizableReferenceQueue

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable


    public class FinalizableReferenceQueue
    extends java.lang.Object
    implements java.io.Closeable
    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)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FinalizableReferenceQueue

        public FinalizableReferenceQueue()
        Constructs a new queue.
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.