Enum Class StatusInfo.Status

java.lang.Object
java.lang.Enum<StatusInfo.Status>
org.eclipse.ditto.internal.utils.health.StatusInfo.Status
All Implemented Interfaces:
Serializable, Comparable<StatusInfo.Status>, Constable
Enclosing class:
StatusInfo

public static enum StatusInfo.Status extends Enum<StatusInfo.Status>
An enumeration of status codes for the health status in the style of spring boot actuator.
  • Enum Constant Details

    • UNKNOWN

      public static final StatusInfo.Status UNKNOWN
      Signals the application is in an unknown state.
    • UP

      public static final StatusInfo.Status UP
      Signals the application is up and running.
    • DOWN

      public static final StatusInfo.Status DOWN
      Signals the application is down.
  • Method Details

    • values

      public static StatusInfo.Status[] 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 StatusInfo.Status 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
    • mergeWith

      public StatusInfo.Status mergeWith(StatusInfo.Status otherStatus)
      Merges this status with another status.
      Parameters:
      otherStatus - the other status to merge this status with.
      Returns:
      the merged status.