K - the type of the conflation keyV - the type of values in the queuepublic static interface ConflationQueue.Poller<K,V>
| Modifier and Type | Method and Description |
|---|---|
default V |
poll()
Polls the queue and returns the value if any value was present in the queue, or null if the queue was empty.
|
V |
poll(java.util.function.BiConsumer<? super K,? super V> consumer)
Polls the queue passing an unused value in exchange to the queue.
|
V poll(java.util.function.BiConsumer<? super K,? super V> consumer)
consumer - consumer for conflation key and polled value