public interface EventHandler<T extends AbstractEventData>
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getHandlerName()
Returns a name for the handler to identify it (for debugging purposes)
|
java.lang.Object |
handleEvent(EventFireTime<T> fireTime,
T data)
Handles the triggered event
|
@NotNull default java.lang.String getHandlerName()
@Nullable java.lang.Object handleEvent(@NotNull EventFireTime<T> fireTime, @NotNull T data)
fireTime
- The object representing the fire time of the eventdata
- The data associated with the eventdata.getLastReturnValue()