public interface TBlockingQueue<E> extends TQueue<E>
Modifier and Type | Method and Description |
---|---|
int |
drainTo(TCollection<? super E> c) |
int |
drainTo(TCollection<? super E> c,
int maxElements) |
boolean |
offer(E e,
long timeout,
TTimeUnit unit) |
E |
poll(long timeout,
TTimeUnit unit) |
void |
put(E e) |
int |
remainingCapacity() |
E |
take() |
element, offer, peek, poll, remove
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, spliterator, stream, toArray, toArray
void put(E e) throws InterruptedException
InterruptedException
boolean offer(E e, long timeout, TTimeUnit unit) throws InterruptedException
InterruptedException
E take() throws InterruptedException
InterruptedException
E poll(long timeout, TTimeUnit unit) throws InterruptedException
InterruptedException
int remainingCapacity()
int drainTo(TCollection<? super E> c)
int drainTo(TCollection<? super E> c, int maxElements)
Copyright © 2019. All rights reserved.