Enum ResponseStatus

java.lang.Object
java.lang.Enum<ResponseStatus>
net.rubyeye.xmemcached.command.binary.ResponseStatus
All Implemented Interfaces:
Serializable, Comparable<ResponseStatus>, java.lang.constant.Constable

public enum ResponseStatus extends Enum<ResponseStatus>
Binary protocol response status.
  • Enum Constant Details

  • Constructor Details

    • ResponseStatus

      private ResponseStatus()
  • Method Details

    • values

      public static ResponseStatus[] 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 ResponseStatus 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
    • fieldValue

      abstract short fieldValue()
    • parseShort

      public static ResponseStatus parseShort(short value)
      Get status from short value
      Parameters:
      value -
      Returns:
    • errorMessage

      abstract String errorMessage()
      The status error message
      Returns: