Save This Page
Home » openjdk-7 » sun » misc » [javadoc | source]
sun.misc
public class: Queue [javadoc | source]
java.lang.Object
   sun.misc.Queue
Queue: implements a simple queue mechanism. Allows for enumeration of the elements.
Field Summary
 int length     
 QueueElement head     
 QueueElement tail     
Constructor:
 public Queue() 
Method from sun.misc.Queue Summary:
dequeue,   dequeue,   dump,   elements,   enqueue,   isEmpty,   reverseElements
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.misc.Queue Detail:
 public Object dequeue() throws InterruptedException 
    Dequeue the oldest object on the queue. Will wait indefinitely.
 public synchronized Object dequeue(long timeOut) throws InterruptedException 
    Dequeue the oldest object on the queue.
 public synchronized  void dump(String msg) 
 public final synchronized Enumeration elements() 
    Returns an enumeration of the elements in Last-In, First-Out order. Use the Enumeration methods on the returned object to fetch the elements sequentially.
 public synchronized  void enqueue(Object obj) 
    Enqueue an object.
 public synchronized boolean isEmpty() 
    Is the queue empty?
 public final synchronized Enumeration reverseElements() 
    Returns an enumeration of the elements in First-In, First-Out order. Use the Enumeration methods on the returned object to fetch the elements sequentially.