java.util.concurrent
Interface BlockingQueue<E>
- All Superinterfaces:
- Collection<E>, Iterable<E>, Queue<E>
public interface BlockingQueue<E>
- extends Queue<E>
| Methods inherited from interface java.util.Collection |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
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()