Enum MemcacheProtocol.Status

java.lang.Object
java.lang.Enum<MemcacheProtocol.Status>
com.couchbase.client.core.io.netty.kv.MemcacheProtocol.Status
All Implemented Interfaces:
Serializable, Comparable<MemcacheProtocol.Status>, java.lang.constant.Constable
Enclosing class:
MemcacheProtocol

public static enum MemcacheProtocol.Status extends Enum<MemcacheProtocol.Status>
  • Enum Constant Details

    • SUCCESS

      public static final MemcacheProtocol.Status SUCCESS
      Successful message.
    • NOT_FOUND

      public static final MemcacheProtocol.Status NOT_FOUND
      Entity not found.
    • EXISTS

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

      public static final MemcacheProtocol.Status TOO_BIG
      Resource too big.
    • INVALID_REQUEST

      public static final MemcacheProtocol.Status INVALID_REQUEST
      Invalid request sent.
    • NOT_STORED

      public static final MemcacheProtocol.Status NOT_STORED
      Not stored for some reason.
    • NOT_MY_VBUCKET

      public static final MemcacheProtocol.Status NOT_MY_VBUCKET
      Not my vbucket.
    • NO_BUCKET

      public static final MemcacheProtocol.Status NO_BUCKET
      No bucket selected.
    • LOCKED

      public static final MemcacheProtocol.Status LOCKED
      Resource is locked.
    • AUTH_ERROR

      public static final MemcacheProtocol.Status AUTH_ERROR
      Authentication error.
    • RANGE_ERROR

      public static final MemcacheProtocol.Status RANGE_ERROR
      When sampling, this error indicates the collection does not have enough keys to satisfy the requested sample size.
    • ACCESS_ERROR

      public static final MemcacheProtocol.Status ACCESS_ERROR
      Access problem.
    • 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.
    • SERVER_BUSY

      public static final MemcacheProtocol.Status SERVER_BUSY
      The server is busy for some reason.
    • UNKNOWN_COMMAND

      public static final MemcacheProtocol.Status UNKNOWN_COMMAND
      Unknown command.
    • OUT_OF_MEMORY

      public static final MemcacheProtocol.Status OUT_OF_MEMORY
      The server is out of memory.
    • NOT_SUPPORTED

      public static final MemcacheProtocol.Status NOT_SUPPORTED
      Not supported.
    • 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.
    • SUBDOC_CAN_ONLY_REVIVE_DELETED_DOCUMENTS

      public static final MemcacheProtocol.Status SUBDOC_CAN_ONLY_REVIVE_DELETED_DOCUMENTS
      ReviveDocument flag has been used on a document that's already alive.
    • 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.

    • RANGE_SCAN_CANCELLED

      public static final MemcacheProtocol.Status RANGE_SCAN_CANCELLED
      The scan was cancelled whilst returning data. This could be the only status if the cancel was noticed before a key/value was loaded.
    • RANGE_SCAN_MORE

      public static final MemcacheProtocol.Status RANGE_SCAN_MORE
      Scan has not reached the end key; more data maybe available. Client should issue another range scan continue request.
    • RANGE_SCAN_COMPLETE

      public static final MemcacheProtocol.Status RANGE_SCAN_COMPLETE
      Scan has reached the end of the range.
    • VBUUID_NOT_EQUAL

      public static final MemcacheProtocol.Status VBUUID_NOT_EQUAL
      The vbuuid as part of the snapshot requirements does not align with the server.
    • 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.
    • RATE_LIMITED_NETWORK_INGRESS

      public static final MemcacheProtocol.Status RATE_LIMITED_NETWORK_INGRESS
      Rate limited: Network Ingress.
    • RATE_LIMITED_NETWORK_EGRESS

      public static final MemcacheProtocol.Status RATE_LIMITED_NETWORK_EGRESS
      Rate limited: Network Egress.
    • RATE_LIMITED_MAX_CONNECTIONS

      public static final MemcacheProtocol.Status RATE_LIMITED_MAX_CONNECTIONS
      Rate limited: Max Connections.
    • RATE_LIMITED_MAX_COMMANDS

      public static final MemcacheProtocol.Status RATE_LIMITED_MAX_COMMANDS
      Rate limited: Max Commands.
    • SCOPE_SIZE_LIMIT_EXCEEDED

      public static final MemcacheProtocol.Status SCOPE_SIZE_LIMIT_EXCEEDED
      The scope contains too much data.
    • NOT_LOCKED

      @SinceCouchbase("7.6") public static final MemcacheProtocol.Status NOT_LOCKED
      Resource is not locked.

      Added in 7.6.0 under MB-58088.

  • Method Details

    • values

      public static MemcacheProtocol.Status[] 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 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.
    • of

      @Nullable public static MemcacheProtocol.Status of(short input)