@FunctionalInterface public interface EventListener
EventBus
,
DomainEventMessage
,
EventHandler
Modifier and Type | Method and Description |
---|---|
default boolean |
canHandle(EventMessage<?> event)
Indicates whether this listener can handle the given event message
|
void |
handle(EventMessage<?> event)
Process the given event.
|
void handle(EventMessage<?> event) throws Exception
event
- the event to handleException
- when an exception is raised during event handlingdefault boolean canHandle(EventMessage<?> event)
event
- The event message to verifytrue
if this listener can handle the event, otherwise false
Copyright © 2010–2017. All rights reserved.