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 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

      Cancelable setCancelableAction(CancelableAction action)
      Setter for the cancelable action.
      Parameters:
      action - The action to execute.
    • getCancelableAction

      CancelableAction getCancelableAction()
      Getter for the cancelable action.
      Returns:
      The action to execute.