Enum Class StatusCode

java.lang.Object
java.lang.Enum<StatusCode>
net.spy.memcached.ops.StatusCode
All Implemented Interfaces:
Serializable, Comparable<StatusCode>, Constable

public enum StatusCode extends Enum<StatusCode>
Represents status and error codes from the binary protocol.
  • Enum Constant Details

    • SUCCESS

      public static final StatusCode SUCCESS
    • ERR_NOT_FOUND

      public static final StatusCode ERR_NOT_FOUND
    • ERR_EXISTS

      public static final StatusCode ERR_EXISTS
    • ERR_2BIG

      public static final StatusCode ERR_2BIG
    • ERR_INVAL

      public static final StatusCode ERR_INVAL
    • ERR_NOT_STORED

      public static final StatusCode ERR_NOT_STORED
    • ERR_DELTA_BADVAL

      public static final StatusCode ERR_DELTA_BADVAL
    • ERR_NOT_MY_VBUCKET

      public static final StatusCode ERR_NOT_MY_VBUCKET
    • ERR_UNKNOWN_COMMAND

      public static final StatusCode ERR_UNKNOWN_COMMAND
    • ERR_NO_MEM

      public static final StatusCode ERR_NO_MEM
    • ERR_NOT_SUPPORTED

      public static final StatusCode ERR_NOT_SUPPORTED
    • ERR_INTERNAL

      public static final StatusCode ERR_INTERNAL
    • ERR_BUSY

      public static final StatusCode ERR_BUSY
    • ERR_TEMP_FAIL

      public static final StatusCode ERR_TEMP_FAIL
    • CANCELLED

      public static final StatusCode CANCELLED
    • INTERRUPTED

      public static final StatusCode INTERRUPTED
    • TIMEDOUT

      public static final StatusCode TIMEDOUT
    • ERR_CLIENT

      public static final StatusCode ERR_CLIENT
  • Constructor Details

    • StatusCode

      private StatusCode()
  • Method Details

    • values

      public static StatusCode[] 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 StatusCode 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
    • fromBinaryCode

      public static StatusCode fromBinaryCode(int code)
    • fromAsciiLine

      public static StatusCode fromAsciiLine(String line)