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