Save This Page
Home » openjdk-7 » java » util » concurrent » [javadoc | source]
java.util.concurrent
static class: ScheduledThreadPoolExecutor.DelayedWorkQueue [javadoc | source]
java.lang.Object
   java.util.AbstractCollection
      java.util.AbstractQueue
         java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue

All Implemented Interfaces:
    BlockingQueue, Queue, Collection

Specialized delay queue. To mesh with TPE declarations, this class must be declared as a BlockingQueue even though it can only hold RunnableScheduledFutures.
Method from java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue Summary:
add,   clear,   contains,   drainTo,   drainTo,   isEmpty,   iterator,   offer,   offer,   peek,   poll,   poll,   put,   remainingCapacity,   remove,   size,   take,   toArray,   toArray
Methods from java.util.AbstractQueue:
add,   addAll,   clear,   element,   remove
Methods from java.util.AbstractCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue Detail:
 public boolean add(Runnable e) 
 public  void clear() 
 public boolean contains(Object x) 
 public int drainTo(Collection c) 
 public int drainTo(Collection c,
    int maxElements) 
 public boolean isEmpty() 
 public Iterator iterator() 
 public boolean offer(Runnable x) 
 public boolean offer(Runnable e,
    long timeout,
    TimeUnit unit) 
 public RunnableScheduledFuture peek() 
 public RunnableScheduledFuture poll() 
 public RunnableScheduledFuture poll(long timeout,
    TimeUnit unit) throws InterruptedException 
 public  void put(Runnable e) 
 public int remainingCapacity() 
 public boolean remove(Object x) 
 public int size() 
 public RunnableScheduledFuture take() throws InterruptedException 
 public Object[] toArray() 
 public T[] toArray(T[] a)