[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/lang/ref/ReferenceQueue.html [Back]  [Original]

ReferenceQueue (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. ReferenceQueue()
  5. Method Details
    1. poll()
    2. remove(long)
    3. remove()

Class ReferenceQueue<T>

java.lang.Object
java.lang.ref.ReferenceQueue<T>
Type Parameters:
T - the type of the reference object

public class ReferenceQueue<T> extends Object
Reference queues, to which registered reference objects are appended by the garbage collector after the appropriate reachability changes are detected.

Memory consistency effects: The enqueueing of a reference to a queue (by the garbage collector, or by a successful call to Reference.enqueue()) happens-before the reference is removed from the queue by poll() or remove(long).

Since:
1.2


Web Proxy Viewer  |  New URL  |  Original Page