Enum Class ShutdownGate.Refusal

java.lang.Object
java.lang.Enum<ShutdownGate.Refusal>
com.ultikits.ultitools.utils.ShutdownGate.Refusal
All Implemented Interfaces:
Serializable, Comparable<ShutdownGate.Refusal>, java.lang.constant.Constable
Enclosing class:
ShutdownGate

static enum ShutdownGate.Refusal extends Enum<ShutdownGate.Refusal>
How a refused type is answered.
  • Enum Constant Details

    • ACK_THEN_RESULT

      public static final ShutdownGate.Refusal ACK_THEN_RESULT
      command.ack through the ledger, then the result type with internal_error.
    • RESULT

      public static final ShutdownGate.Refusal RESULT
      The result type with internal_error.
    • GENERIC

      public static final ShutdownGate.Refusal GENERIC
      The generic error with replyTo.
    • NONE

      public static final ShutdownGate.Refusal NONE
      Nothing: the gateway delivers it again after the next welcome.
  • Constructor Details

    • Refusal

      private Refusal()
  • Method Details

    • values

      public static ShutdownGate.Refusal[] 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 ShutdownGate.Refusal 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