java.util.concurrent
Interface BlockingQueue<E>

All Superinterfaces:
Collection<E>, Iterable<E>, Queue<E>


public interface BlockingQueue<E>
extends Queue<E>


Method Summary
 boolean add(E o)
           
 int drainTo(Collection<? super E> c)
           
 int drainTo(Collection<? super E> c, int maxElements)
           
 boolean offer(E o)
           
 boolean offer(E o, long timeout, TimeUnit unit)
           
 E poll(long timeout, TimeUnit unit)
           
 void put(E o)
           
 int remainingCapacity()
           
 E take()
           
 
Methods inherited from interface java.util.Queue
element, peek, poll, remove
 
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

add

boolean add(E o)
Specified by:
add in interface Collection<E>

drainTo

int drainTo(Collection<? super E> c)

drainTo

int drainTo(Collection<? super E> c,
            int maxElements)

offer

boolean offer(E o)
Specified by:
offer in interface Queue<E>

offer

boolean offer(E o,
              long timeout,
              TimeUnit unit)

poll

E poll(long timeout,
       TimeUnit unit)

put

void put(E o)

remainingCapacity

int remainingCapacity()

take

E take()