Enum StatusCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<StatusCode>

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

      • 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 Detail

      • StatusCode

        private StatusCode()
    • Method Detail

      • values

        public static StatusCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StatusCode c : StatusCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StatusCode valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fromBinaryCode

        public static StatusCode fromBinaryCode​(int code)
      • fromAsciiLine

        public static StatusCode fromAsciiLine​(java.lang.String line)