ReferenceQueue

Class ReferenceQueue<T>

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.

Since:
1.2

Constructors

ReferenceQueue

public ReferenceQueue()

Constructs a new reference-object queue.

Methods

poll

public Reference<? extends T> poll()

Polls this queue to see if a reference object is available. If one is available without further delay then i