Package com.couchbase.client.core.msg
Enum ResponseStatus
- All Implemented Interfaces:
Serializable
,Comparable<ResponseStatus>
The
ResponseStatus
describes what kind of response came back for a specific
request.
Note that this status is not tied to any protocol or service, rather there must be a mapping performed from actual protocol-level response codes (be it http or memcache protocol) to this abstract status. This allows to achieve a level of consistency in status codes that is not tied to a particular protocol.
- Since:
- 1.0.0
-
Enum Constant Summary
Enum ConstantDescriptionIndicating a canceled request on a "one request N responses" operation.Indicating no more items on a "one request N responses" operation.Indicating more items on a "one request N responses" operation.Valid request, but given durability requirements are impossible to achieve.Invalid request.The document exists (but maybe with another cas, depending on the op).The server indicated an internal error.The requested resource is locked.The server indicated that the given message failed because of a permission violation.The server indicates that no bucket is selected.Indicates that the requested entity has not been found on the server.The server reports that it is not initialized yet.The requested resource is not locked.In a kv request, signaling that the vbucket is on a different node.The resource was not stored for some reason.The server is out of memory.When sampling, this error indicates the collection does not have enough keys to satisfy the requested sample size.The server is busy for some reason.One or more attempted subdoc operations failed.Indicates a successful response in general.The SyncWrite request has not completed in the specified time and has ambiguous result.Returned if an attempt is made to mutate a key which already has a SyncWrite pending.Returned if the requested key has a SyncWrite which is being re-committed.The server could temporarily not fulfill the request.The written resource is too big.Indicates an unknown status returned from the server, please check the events/logs for further information.The server indicated that the given message is not supported.The vbuuid as part of the snapshot requirements does not align with the server. -
Method Summary
Modifier and TypeMethodDescriptionboolean
success()
static ResponseStatus
Returns the enum constant of this type with the specified name.static ResponseStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
Indicates a successful response in general. -
NOT_FOUND
Indicates that the requested entity has not been found on the server. -
EXISTS
The document exists (but maybe with another cas, depending on the op). -
UNKNOWN
Indicates an unknown status returned from the server, please check the events/logs for further information. -
NO_ACCESS
The server indicated that the given message failed because of a permission violation. -
NOT_STORED
The resource was not stored for some reason. -
TEMPORARY_FAILURE
The server could temporarily not fulfill the request. -
SERVER_BUSY
The server is busy for some reason. -
OUT_OF_MEMORY
The server is out of memory. -
LOCKED
The requested resource is locked. -
UNSUPPORTED
The server indicated that the given message is not supported. -
NO_BUCKET
The server indicates that no bucket is selected. -
NOT_MY_VBUCKET
In a kv request, signaling that the vbucket is on a different node. -
TOO_BIG
The written resource is too big. -
SUBDOC_FAILURE
One or more attempted subdoc operations failed. -
DURABILITY_INVALID_LEVEL
Invalid request. Returned if an invalid durability level is specified. -
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
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
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
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.
-
INTERNAL_SERVER_ERROR
The server indicated an internal error. -
TOO_MANY_REQUESTS
-
INVALID_ARGS
-
INVALID_REQUEST
-
UNKNOWN_COLLECTION
-
UNKNOWN_SCOPE
-
COLLECTIONS_MANIFEST_AHEAD
-
NO_COLLECTIONS_MANIFEST
-
CANNOT_APPLY_COLLECTIONS_MANIFEST
-
RATE_LIMITED
-
QUOTA_LIMITED
-
NOT_INITIALIZED
The server reports that it is not initialized yet. -
CONTINUE
Indicating more items on a "one request N responses" operation. -
COMPLETE
Indicating no more items on a "one request N responses" operation. -
CANCELED
Indicating a canceled request on a "one request N responses" operation. -
RANGE_ERROR
When sampling, this error indicates the collection does not have enough keys to satisfy the requested sample size. -
VBUUID_NOT_EQUAL
The vbuuid as part of the snapshot requirements does not align with the server. -
NOT_LOCKED
The requested resource is not locked.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
success
public boolean success()
-