T- The object
public interface WaterMarkQueue<T> extends BlockingQueue<T>
BlockingQueueinterface 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|
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 inserted
Copyright © The Apache Software Foundation. All Rights Reserved.