public final class CompletableBlockingQueue<T> extends java.util.concurrent.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,
java.util.concurrent.TimeUnit unit) |
T |
take() |
add, clear, contains, drainTo, drainTo, iterator, offer, offer, peek, put, remainingCapacity, remove, size, spliterator, toArray, toArray, toStringcontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic void complete()
CompletableQueuecomplete in interface CompletableQueue<T>public boolean isComplete()
CompletableQueueisComplete in interface CompletableQueue<T>this#complete()public T take() throws java.lang.InterruptedException
public T poll()