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, toString
containsAll, isEmpty, removeAll, retainAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public void complete()
CompletableQueue
complete
in interface CompletableQueue<T>
public boolean isComplete()
CompletableQueue
isComplete
in interface CompletableQueue<T>
this#complete()
public T take() throws java.lang.InterruptedException
public T poll()