Enum Severity

java.lang.Object
java.lang.Enum<Severity>
org.acemq.rabbitmq.admin.alerts.Severity
All Implemented Interfaces:
Serializable, Comparable<Severity>

public enum Severity extends Enum<Severity>
How much this matters.

Three, deliberately. A scale with five levels ends up with everything at the middle one, and the only question an on-call rota actually asks is whether to wake somebody.

  • Enum Constant Details

    • CRITICAL

      public static final Severity CRITICAL
      Wake somebody. Messages are being lost, or will be shortly.
    • WARNING

      public static final Severity WARNING
      Look at it today. Something is degrading and has not broken yet.
    • INFO

      public static final Severity INFO
      Worth knowing when you are already looking. Never a page.
  • Method Details

    • values

      public static Severity[] 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 Severity valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null