Class ModulePreStopEvent

All Implemented Interfaces:
Cancelable

public final class ModulePreStopEvent extends ModuleEvent implements Cancelable
This event is being called before a module has been stopped and the tasks with the lifecycle ModuleLifeCycle.STOPPED of this module have been fired. ModuleWrapper.moduleLifeCycle() is still ModuleLifeCycle.STARTED or ModuleLifeCycle.LOADED.
Since:
4.0
  • Field Details

    • cancelled

      private boolean cancelled
  • Constructor Details

  • Method Details

    • cancelled

      public boolean cancelled()
      Gets the cancellation state of the event. A cancelled event will stop the execution of the representing change in the system, but will be passed to all event listeners nevertheless.
      Specified by:
      cancelled in interface Cancelable
      Returns:
      true if this is cancelled, false otherwise.
    • cancelled

      public void cancelled(boolean value)
      Marks this event as cancelled and stops the execution of the representing change in the system. The event will be passed to other event listeners down the line anyway.
      Specified by:
      cancelled in interface Cancelable
      Parameters:
      value - true if this event should get marked as cancelled, false otherwise.