|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The objectpublic interface WaterMarkQueue<T>
This queue acts as a queue with a mark. The methods exposed by the 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.
| Method Summary | |
|---|---|
boolean |
offerAfter(T object)
Offer the element after the water mark. |
| Methods inherited from interface java.util.concurrent.BlockingQueue |
|---|
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take |
| Methods inherited from interface java.util.Queue |
|---|
element, peek, poll, remove |
| Methods inherited from interface java.util.Collection |
|---|
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
boolean offerAfter(T object)
object - object to be inserted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||