Enum Class ShutdownController.State

java.lang.Object
java.lang.Enum<ShutdownController.State>
ch.raffael.meldioc.library.base.lifecycle.ShutdownController.State
All Implemented Interfaces:
Serializable, Comparable<ShutdownController.State>, Constable
Enclosing interface:
ShutdownController

public static enum ShutdownController.State extends Enum<ShutdownController.State>
  • Enum Constant Details

    • DORMANT

      public static final ShutdownController.State DORMANT
      No shutdown initiated up to now.
    • ANNOUNCED

      public static final ShutdownController.State ANNOUNCED
      A shutdown has been announced, shutdown preventing actions are not possible anymore.
    • INITIATED

      public static final ShutdownController.State INITIATED
      A shutdown has been initiated, possibly waiting for shutdown preventing actions to finish. Shutdown preventing actions are not possible anymore.
    • PREPARING

      public static final ShutdownController.State PREPARING
      onPrepare hook a are being run.
    • PERFORMING

      public static final ShutdownController.State PERFORMING
      onPerform hook a are being run.
    • FINALIZING

      public static final ShutdownController.State FINALIZING
      onFinalize hook a are being run.
    • COMPLETE

      public static final ShutdownController.State COMPLETE
      The shutdown is complete, with or without errors.
  • Method Details

    • values

      public static ShutdownController.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ShutdownController.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isBefore

      public boolean isBefore(ShutdownController.State before)
    • isBeforeOrEqual

      public boolean isBeforeOrEqual(ShutdownController.State before)
    • checkStateBefore

      public void checkStateBefore(ShutdownController.State before)
    • checkStateBeforeOrEqual

      public void checkStateBeforeOrEqual(ShutdownController.State before)