net.citrusleaf
Enum CitrusleafClient.ClResultCode

java.lang.Object
  extended by java.lang.Enum<CitrusleafClient.ClResultCode>
      extended by net.citrusleaf.CitrusleafClient.ClResultCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CitrusleafClient.ClResultCode>
Enclosing class:
CitrusleafClient

public static enum CitrusleafClient.ClResultCode
extends java.lang.Enum<CitrusleafClient.ClResultCode>

Database operation result codes.


Enum Constant Summary
BIN_EXISTS_ERROR
          On create-only (write unique) operations on a bin that already exists.
BIN_TYPE_ERROR
          Operation is not supported with configured bin type (single-bin or multi-bin).
CLIENT_ERROR
          Memory or other client fault.
CLUSTER_KEY_MISMATCH
          Expected cluster ID was not received.
GENERATION_ERROR
          On modifying a record with unexpected generation.
KEY_BUSY
          Too many concurrent operations on the same record.
KEY_EXISTS_ERROR
          On create-only (write unique) operations on a record that already exists.
KEY_NOT_FOUND_ERROR
          On retrieving, touching or replacing a record that doesn't exist.
NO_XDS
          XDS product is not available.
NOT_SET
          Initial "empty" value, operation has not started.
OK
          Operation was successful.
PARAMETER_ERROR
          Bad parameter(s) were passed in database operation call.
RECORD_TOO_BIG
          Record size exceeds limit.
SERIALIZE_ERROR
          Object could not be serialized.
SERVER_ERROR
          Unknown server failure.
SERVER_MEM_ERROR
          Server has run out of memory.
SERVER_NOT_AVAILABLE
          Server is not accepting requests.
TIMEOUT
          Operation timed out.
 
Method Summary
static CitrusleafClient.ClResultCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CitrusleafClient.ClResultCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OK

public static final CitrusleafClient.ClResultCode OK
Operation was successful.


NOT_SET

public static final CitrusleafClient.ClResultCode NOT_SET
Initial "empty" value, operation has not started.


SERVER_ERROR

public static final CitrusleafClient.ClResultCode SERVER_ERROR
Unknown server failure.


TIMEOUT

public static final CitrusleafClient.ClResultCode TIMEOUT
Operation timed out.


CLIENT_ERROR

public static final CitrusleafClient.ClResultCode CLIENT_ERROR
Memory or other client fault.


KEY_NOT_FOUND_ERROR

public static final CitrusleafClient.ClResultCode KEY_NOT_FOUND_ERROR
On retrieving, touching or replacing a record that doesn't exist.


GENERATION_ERROR

public static final CitrusleafClient.ClResultCode GENERATION_ERROR
On modifying a record with unexpected generation.


PARAMETER_ERROR

public static final CitrusleafClient.ClResultCode PARAMETER_ERROR
Bad parameter(s) were passed in database operation call.


KEY_EXISTS_ERROR

public static final CitrusleafClient.ClResultCode KEY_EXISTS_ERROR
On create-only (write unique) operations on a record that already exists.


BIN_EXISTS_ERROR

public static final CitrusleafClient.ClResultCode BIN_EXISTS_ERROR
On create-only (write unique) operations on a bin that already exists.


SERIALIZE_ERROR

public static final CitrusleafClient.ClResultCode SERIALIZE_ERROR
Object could not be serialized.


CLUSTER_KEY_MISMATCH

public static final CitrusleafClient.ClResultCode CLUSTER_KEY_MISMATCH
Expected cluster ID was not received.


SERVER_MEM_ERROR

public static final CitrusleafClient.ClResultCode SERVER_MEM_ERROR
Server has run out of memory.


NO_XDS

public static final CitrusleafClient.ClResultCode NO_XDS
XDS product is not available.


SERVER_NOT_AVAILABLE

public static final CitrusleafClient.ClResultCode SERVER_NOT_AVAILABLE
Server is not accepting requests.


BIN_TYPE_ERROR

public static final CitrusleafClient.ClResultCode BIN_TYPE_ERROR
Operation is not supported with configured bin type (single-bin or multi-bin).


RECORD_TOO_BIG

public static final CitrusleafClient.ClResultCode RECORD_TOO_BIG
Record size exceeds limit.


KEY_BUSY

public static final CitrusleafClient.ClResultCode KEY_BUSY
Too many concurrent operations on the same record.

Method Detail

values

public static CitrusleafClient.ClResultCode[] 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 (CitrusleafClient.ClResultCode c : CitrusleafClient.ClResultCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CitrusleafClient.ClResultCode 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