T - the type of the event that can be handled by the consumer and the type that
can be handled by the delegatepublic class EventConsumer<T> extends java.lang.Object implements reactor.fn.Consumer<Event<T>>
Consumer implementation that pulls the data from an Event and
passes it to a delegate Consumer.| Constructor and Description |
|---|
EventConsumer(reactor.fn.Consumer<T> delegate)
Creates a new
EventConsumer that will pass event data to the given delegate. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Event<T> ev) |
public EventConsumer(@Nonnull
reactor.fn.Consumer<T> delegate)
EventConsumer that will pass event data to the given delegate.delegate - The delegate consumer