T - The type for the event payload@ConsumerType @FunctionalInterface public interface PushEventConsumer<T>
| Modifier and Type | Field and Description |
|---|---|
static long |
ABORT
If ABORT is used as return value, the sender should close the channel all
the way to the upstream source.
|
static long |
CONTINUE
A 0 indicates that the consumer is willing to receive subsequent events
at full speeds.
|
| Modifier and Type | Method and Description |
|---|---|
long |
accept(PushEvent<? extends T> event)
Accept an event from a source.
|
static final long ABORT
static final long CONTINUE
long accept(PushEvent<? extends T> event) throws Exception
event - The eventException - to indicate that an error has occurred and that no
further events should be delivered to this
PushEventConsumerCopyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0