API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.ref. ReferenceQueue View Source
Author(s)
Mark Reinhold
Since
1.2
Version
1.25, 11/17/05
Serial
Hierarchy
 Object
      ReferenceQueue
Implements
Subclasses
Description
public class ReferenceQueue
  Reference queues, to which registered reference objects are appended by the garbage collector after the appropriate reachability changes are detected.
See also:   
Constructors
public ReferenceQueue ()
Constructs a new reference-object queue.
Methods
Hide/Show inherited methods
pack-private boolean enqueue (Reference<Object> r)
public Reference<Object> poll ()
  Polls this queue to see if a reference object is available.
public Reference<Object> remove () throws InterruptedException
  Removes the next reference object in this queue, blocking until one becomes available.
public Reference<Object> remove (long timeout) throws IllegalArgumentException InterruptedException
  Removes the next reference object in this queue, blocking until either one becomes available or the given timeout period expires.
Fields
Hide/Show inherited fields
pack-privatestatic ReferenceQueue ENQUEUED
pack-privatestatic ReferenceQueue NULL
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar