Package com.chillycheesy.modulo.events
Interface Cancelable
- All Known Implementing Classes:
ControllerAppliedEvent
,DebugLogEvent
,DeleteRequestEvent
,ErrorLogEvent
,GetRequestEvent
,InfoLogEvent
,LogEvent
,ModuleStatusEvent
,OnLoadEvent
,OnStartEvent
,OnStopEvent
,PostRequestEvent
,PutRequestEvent
,RequestEvent
,WarnLogEvent
public interface Cancelable
It can be applied on a event.
If the was cancel the event cause was cancel.
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the cancelable action.boolean
Check if the event was cancel.setCancelableAction(CancelableAction action)
Setter for the cancelable action.void
setCanceled(boolean cancel)
Setter for the cancel status.
-
Method Details
-
isCanceled
boolean isCanceled()Check if the event was cancel.- Returns:
- The cancel status.
-
setCanceled
void setCanceled(boolean cancel)Setter for the cancel status.- Parameters:
cancel
- The new cancel status.
-
setCancelableAction
Setter for the cancelable action.- Parameters:
action
- The action to execute.
-
getCancelableAction
CancelableAction getCancelableAction()Getter for the cancelable action.- Returns:
- The action to execute.
-