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 java.lang.Exception
event
- The eventjava.lang.Exception
- to indicate that an error has occurred and that no
further events should be delivered to this
PushEventConsumer
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0