public static interface BackpressureDrainManager.BackpressureQueueCallback
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Object
Override this method to deliver an element to downstream.
|
void |
complete(Throwable
Override this method to deliver a normal or exceptional terminal event.
|
Object |
peek()
Override this method to peek for the next element, null meaning no next element available now.
|
Object |
poll()
Override this method to poll (consume) the next element, null meaning no next element available now.
|
Objectpeek()
It will be called plain and while holding this object's monitor.
Objectpoll()
boolean accept(Objectvalue)
value - the value to deliver, not null
void complete(Throwableexception)
exception - if not null, contains the terminal exception