public final class CompletableBlockingQueue<T> extends ArrayBlockingQueue<T> implements CompletableQueue<T>
| Constructor and Description |
|---|
CompletableBlockingQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Mark this queue as complete
|
boolean |
isComplete()
Get the number of items persisted right now.
|
T |
poll() |
T |
poll(long timeout,
TimeUnit unit) |
T |
take() |
add, clear, contains, drainTo, drainTo, iterator, offer, offer, peek, put, remainingCapacity, remove, size, spliterator, toArray, toArray, toStringaddAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic void complete()
CompletableQueuecomplete in interface CompletableQueue<T>public boolean isComplete()
CompletableQueueisComplete in interface CompletableQueue<T>this#complete()public T take() throws InterruptedException
take in interface BlockingQueue<T>take in class ArrayBlockingQueue<T>InterruptedExceptionpublic T poll()
public T poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueue<T>poll in class ArrayBlockingQueue<T>InterruptedExceptionCopyright © 2016. All rights reserved.