Enum ShutdownController.State

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

public static enum ShutdownController.State
extends java.lang.Enum<ShutdownController.State>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    ANNOUNCED
    A shutdown has been announced, shutdown preventing actions are not possible anymore.
    COMPLETE
    The shutdown is complete, with or without errors.
    DORMANT
    No shutdown initiated up to now.
    FINALIZING
    onFinalize hook a are being run.
    INITIATED
    A shutdown has been initiated, possibly waiting for shutdown preventing actions to finish.
    PERFORMING
    onPerform hook a are being run.
    PREPARING
    onPrepare hook a are being run.
  • Method Summary

    Modifier and Type Method Description
    void checkStateBefore​(ShutdownController.State before)  
    void checkStateBeforeOrEqual​(ShutdownController.State before)  
    boolean isBefore​(ShutdownController.State before)  
    boolean isBeforeOrEqual​(ShutdownController.State before)  
    static ShutdownController.State valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static ShutdownController.State[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ShutdownController.State valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.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)