Enum MemcacheProtocol.Status

    • Enum Constant Detail

      • EXISTS

        public static final MemcacheProtocol.Status EXISTS
        The key exists in the cluster (with another CAS value).
      • NOT_INITIALIZED

        public static final MemcacheProtocol.Status NOT_INITIALIZED
        The server/kv engine is not initialized yet.
      • INTERNAL_SERVER_ERROR

        public static final MemcacheProtocol.Status INTERNAL_SERVER_ERROR
        A server-internal error has been reported.
      • TEMPORARY_FAILURE

        public static final MemcacheProtocol.Status TEMPORARY_FAILURE
        The server could temporarily not fulfill the requrst.
      • SUBDOC_PATH_NOT_FOUND

        public static final MemcacheProtocol.Status SUBDOC_PATH_NOT_FOUND
        The provided path does not exist in the document
      • SUBDOC_PATH_MISMATCH

        public static final MemcacheProtocol.Status SUBDOC_PATH_MISMATCH
        One of path components treats a non-dictionary as a dictionary, or a non-array as an array, or value the path points to is not a number
      • SUBDOC_PATH_INVALID

        public static final MemcacheProtocol.Status SUBDOC_PATH_INVALID
        The path's syntax was incorrect
      • SUBDOC_PATH_TOO_BIG

        public static final MemcacheProtocol.Status SUBDOC_PATH_TOO_BIG
        The path provided is too large: either the string is too long, or it contains too many components
      • SUBDOC_DOC_TOO_DEEP

        public static final MemcacheProtocol.Status SUBDOC_DOC_TOO_DEEP
        The document has too many levels to parse
      • SUBDOC_VALUE_CANTINSERT

        public static final MemcacheProtocol.Status SUBDOC_VALUE_CANTINSERT
        The value provided will invalidate the JSON if inserted
      • SUBDOC_DOC_NOT_JSON

        public static final MemcacheProtocol.Status SUBDOC_DOC_NOT_JSON
        The existing document is not valid JSON
      • SUBDOC_NUM_RANGE

        public static final MemcacheProtocol.Status SUBDOC_NUM_RANGE
        The existing number is out of the valid range for arithmetic operations
      • SUBDOC_DELTA_RANGE

        public static final MemcacheProtocol.Status SUBDOC_DELTA_RANGE
        The operation would result in a number outside the valid range
      • SUBDOC_PATH_EXISTS

        public static final MemcacheProtocol.Status SUBDOC_PATH_EXISTS
        The requested operation requires the path to not already exist, but it exists
      • SUBDOC_VALUE_TOO_DEEP

        public static final MemcacheProtocol.Status SUBDOC_VALUE_TOO_DEEP
        Inserting the value would cause the document to be too deep
      • SUBDOC_INVALID_COMBO

        public static final MemcacheProtocol.Status SUBDOC_INVALID_COMBO
        An invalid combination of commands was specified
      • SUBDOC_MULTI_PATH_FAILURE

        public static final MemcacheProtocol.Status SUBDOC_MULTI_PATH_FAILURE
        Specified key was successfully found, but one or more path operations failed
      • SUBDOC_XATTR_INVALID_FLAG_COMBO

        public static final MemcacheProtocol.Status SUBDOC_XATTR_INVALID_FLAG_COMBO
        An invalid combination of operationSpecified key was successfully found, but one or more path operations faileds, using macros when not using extended attributes
      • SUBDOC_XATTR_INVALID_KEY_COMBO

        public static final MemcacheProtocol.Status SUBDOC_XATTR_INVALID_KEY_COMBO
        Only single xattr key may be accessed at the same time
      • SUBDOC_XATTR_UNKNOWN_MACRO

        public static final MemcacheProtocol.Status SUBDOC_XATTR_UNKNOWN_MACRO
        The server has no knowledge of the requested macro
      • SUBDOC_XATTR_UNKNOWN_VATTR

        public static final MemcacheProtocol.Status SUBDOC_XATTR_UNKNOWN_VATTR
        Unknown virtual attribute.
      • SUBDOC_XATTR_CANNOT_MODIFY_VATTR

        public static final MemcacheProtocol.Status SUBDOC_XATTR_CANNOT_MODIFY_VATTR
        Cannot modify virtual attribute.
      • SUBDOC_SUCCESS_DELETED_DOCUMENT

        public static final MemcacheProtocol.Status SUBDOC_SUCCESS_DELETED_DOCUMENT
        The subdoc operation completed successfully on the deleted document
      • SUBDOC_MULTI_PATH_FAILURE_DELETED

        public static final MemcacheProtocol.Status SUBDOC_MULTI_PATH_FAILURE_DELETED
        The subdoc operation found the deleted document, but one or more path operations failed.
      • SUBDOC_INVALID_XATTR_ORDER

        public static final MemcacheProtocol.Status SUBDOC_INVALID_XATTR_ORDER
        Invalid ordering of the extended attributes.
      • DURABILITY_INVALID_LEVEL

        public static final MemcacheProtocol.Status DURABILITY_INVALID_LEVEL
        Invalid request. Returned if an invalid durability level is specified.
      • DURABILITY_IMPOSSIBLE

        public static final MemcacheProtocol.Status DURABILITY_IMPOSSIBLE
        Valid request, but given durability requirements are impossible to achieve.

        because insufficient configured replicas are connected. Assuming level=majority and C=number of configured nodes, durability becomes impossible if floor((C + 1) / 2) nodes or greater are offline.

      • SYNC_WRITE_IN_PROGRESS

        public static final MemcacheProtocol.Status SYNC_WRITE_IN_PROGRESS
        Returned if an attempt is made to mutate a key which already has a SyncWrite pending.

        Transient, the client would typically retry (possibly with backoff). Similar to ELOCKED.

      • SYNC_WRITE_RE_COMMIT_IN_PROGRESS

        public static final MemcacheProtocol.Status SYNC_WRITE_RE_COMMIT_IN_PROGRESS
        Returned if the requested key has a SyncWrite which is being re-committed.

        Transient, the client would typically retry (possibly with backoff). Similar to ELOCKED.

      • SYNC_WRITE_AMBIGUOUS

        public static final MemcacheProtocol.Status SYNC_WRITE_AMBIGUOUS
        The SyncWrite request has not completed in the specified time and has ambiguous result.

        it may Succeed or Fail; but the final value is not yet known.

      • UNKNOWN_COLLECTION

        public static final MemcacheProtocol.Status UNKNOWN_COLLECTION
        The collection ID provided is unknown, maybe it changed or got dropped.
      • NO_COLLECTIONS_MANIFEST

        public static final MemcacheProtocol.Status NO_COLLECTIONS_MANIFEST
        No collections manifest has been set on the server.
      • CANNOT_APPLY_COLLECTIONS_MANIFEST

        public static final MemcacheProtocol.Status CANNOT_APPLY_COLLECTIONS_MANIFEST
        Bucket Manifest update could not be applied to vbucket(s).
      • COLLECTIONS_MANIFEST_AHEAD

        public static final MemcacheProtocol.Status COLLECTIONS_MANIFEST_AHEAD
        We have a collection's manifest which is from the future. This means they we have a uid that is greater than the servers.
      • UNKNOWN_SCOPE

        public static final MemcacheProtocol.Status UNKNOWN_SCOPE
        Operation attempted with an unknown scope.
    • Method Detail

      • values

        public static MemcacheProtocol.Status[] 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 (MemcacheProtocol.Status c : MemcacheProtocol.Status.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MemcacheProtocol.Status 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
      • status

        public short status()
        Returns the status code for the status enum.
        Returns:
        the status code.