EventConsumer

public interface EventConsumer<E extends EventMessage> implements MessageConsumer<M, C>

Represents an operation which accepts an event message and its context.

Parameters

<E>

the type of the event message

Inheritors

Functions

Link copied to clipboard
public static EventConsumer<E> from<E extends EventMessage>(Consumer<E> consumer)
Converts the passed consumer of the event message to EventConsumer.

Inherited functions

Link copied to clipboard
public abstract void accept(T p, U p1)
Link copied to clipboard
public BiConsumer<T, U> andThen(BiConsumer<? extends Object, ? extends Object> after)