T
- The objectpublic interface WaterMarkQueue<T> extends BlockingQueue<T>
BlockingQueue
interface will add elements up to the mark. We call this mark the waterMark. After the
water mark the all the insertion operations will fails as if the queue is bounded by
this waterMark. After this to add values to the queue the offerAfter method should be called.Modifier and Type | Method and Description |
---|---|
boolean |
offerAfter(T object)
Offer the element after the water mark.
|
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
boolean offerAfter(T object)
object
- object to be insertedCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.