E
- the type of the event message@FunctionalInterface
public interface EventConsumer<E extends io.spine.base.EventMessage>
Modifier and Type | Method and Description |
---|---|
static <E extends io.spine.base.EventMessage> |
from(java.util.function.Consumer<E> consumer)
Converts the passed consumer of the event message to
EventConsumer . |
static <E extends io.spine.base.EventMessage> EventConsumer<E> from(java.util.function.Consumer<E> consumer)
EventConsumer
.