public enum ResponseStatus extends Enum<ResponseStatus>
Typesafe status code returned by CouchbaseResponse
s.
Enum Constant and Description |
---|
COMMAND_UNAVAILABLE
Indicates that the request type was dispatched but not known by the server or it is not supported.
|
EXISTS
If the request expected the document to not exist, but it existed already.
|
FAILURE
Generic failure status.
|
INTERNAL_ERROR
The remote service failed for an internal reason.
|
INVALID_ARGUMENTS
The service reported that the request arguments are invalid.
|
NOT_EXISTS
If the request expected the document to exit, but it didn't exist already.
|
NOT_STORED
The response indicates that a mutation try did not happen properly.
|
OUT_OF_MEMORY
The requested service is currently out of memory.
|
RETRY
The underlying response indicates retry is in order.
|
SERVER_BUSY
Indicates that the server is busy, which is considered to be transient.
|
SUCCESS
If the response is successful and finished.
|
TEMPORARY_FAILURE
Indicates a failure which is considered to be transient.
|
TOO_BIG
The response indicates that the request was too big for some reason.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSuccess()
Check if the current
ResponseStatus is success. |
static ResponseStatus |
valueOf(String name)
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.
|
public static final ResponseStatus SUCCESS
public static final ResponseStatus EXISTS
public static final ResponseStatus NOT_EXISTS
public static final ResponseStatus NOT_STORED
public static final ResponseStatus TOO_BIG
public static final ResponseStatus TEMPORARY_FAILURE
public static final ResponseStatus SERVER_BUSY
public static final ResponseStatus COMMAND_UNAVAILABLE
public static final ResponseStatus OUT_OF_MEMORY
public static final ResponseStatus INVALID_ARGUMENTS
public static final ResponseStatus INTERNAL_ERROR
public static final ResponseStatus FAILURE
public static final ResponseStatus RETRY
public static ResponseStatus[] values()
for (ResponseStatus c : ResponseStatus.values()) System.out.println(c);
public static ResponseStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isSuccess()
Check if the current ResponseStatus
is success.
Copyright © 2014 Couchbase, Inc.