Enum Class ProtocolReply.Status

java.lang.Object
java.lang.Enum<ProtocolReply.Status>
io.atomix.cluster.messaging.impl.ProtocolReply.Status
All Implemented Interfaces:
Serializable, Comparable<ProtocolReply.Status>, Constable
Enclosing class:
ProtocolReply

public static enum ProtocolReply.Status extends Enum<ProtocolReply.Status>
Message status.
  • Enum Constant Details

    • OK

      public static final ProtocolReply.Status OK
      All ok.
    • ERROR_NO_HANDLER

      public static final ProtocolReply.Status ERROR_NO_HANDLER
      Response status signifying no registered handler.
    • ERROR_HANDLER_EXCEPTION

      public static final ProtocolReply.Status ERROR_HANDLER_EXCEPTION
      Response status signifying an exception handling the message.
    • PROTOCOL_EXCEPTION

      public static final ProtocolReply.Status PROTOCOL_EXCEPTION
      Response status signifying invalid message structure.
  • Method Details

    • values

      public static ProtocolReply.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 ProtocolReply.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
    • id

      public int id()
      Returns the unique status ID.
      Returns:
      the unique status ID.
    • forId

      public static ProtocolReply.Status forId(int id)
      Returns the status enum associated with the given ID.
      Parameters:
      id - the status ID.
      Returns:
      the status enum for the given ID.