Class ResultCode

java.lang.Object
com.aerospike.client.ResultCode

public final class ResultCode extends Object
Database operation error codes. The positive numbers align with the server side file proto.h.
  • Field Details

    • BATCH_FAILED

      public static final int BATCH_FAILED
      One or more keys failed in a batch.
      See Also:
    • NO_RESPONSE

      public static final int NO_RESPONSE
      No response received from server.
      See Also:
    • MAX_ERROR_RATE

      public static final int MAX_ERROR_RATE
      Max errors limit reached.
      See Also:
    • MAX_RETRIES_EXCEEDED

      public static final int MAX_RETRIES_EXCEEDED
      Max retries limit reached.
      See Also:
    • SERIALIZE_ERROR

      public static final int SERIALIZE_ERROR
      Client serialization error.
      See Also:
    • ASYNC_QUEUE_FULL

      public static final int ASYNC_QUEUE_FULL
      Async delay queue is full.
      See Also:
    • SERVER_NOT_AVAILABLE

      public static final int SERVER_NOT_AVAILABLE
      Connection to server failed.
      See Also:
    • NO_MORE_CONNECTIONS

      public static final int NO_MORE_CONNECTIONS
      Max connections would be exceeded. There are no more available connections.
      See Also:
    • QUERY_TERMINATED

      public static final int QUERY_TERMINATED
      Query was terminated by user.
      See Also:
    • SCAN_TERMINATED

      public static final int SCAN_TERMINATED
      Scan was terminated by user.
      See Also:
    • INVALID_NODE_ERROR

      public static final int INVALID_NODE_ERROR
      Chosen node is not currently active.
      See Also:
    • PARSE_ERROR

      public static final int PARSE_ERROR
      Client parse error.
      See Also:
    • CLIENT_ERROR

      public static final int CLIENT_ERROR
      Generic client error.
      See Also:
    • OK

      public static final int OK
      Operation was successful.
      See Also:
    • SERVER_ERROR

      public static final int SERVER_ERROR
      Unknown server failure.
      See Also:
    • KEY_NOT_FOUND_ERROR

      public static final int KEY_NOT_FOUND_ERROR
      On retrieving, touching or replacing a record that doesn't exist.
      See Also:
    • GENERATION_ERROR

      public static final int GENERATION_ERROR
      On modifying a record with unexpected generation.
      See Also:
    • PARAMETER_ERROR

      public static final int PARAMETER_ERROR
      Bad parameter(s) were passed in database operation call.
      See Also:
    • KEY_EXISTS_ERROR

      public static final int KEY_EXISTS_ERROR
      On create-only (write unique) operations on a record that already exists.
      See Also:
    • BIN_EXISTS_ERROR

      public static final int BIN_EXISTS_ERROR
      Bin already exists on a create-only operation.
      See Also:
    • CLUSTER_KEY_MISMATCH

      public static final int CLUSTER_KEY_MISMATCH
      Expected cluster was not received.
      See Also:
    • SERVER_MEM_ERROR

      public static final int SERVER_MEM_ERROR
      Server has run out of memory.
      See Also:
    • TIMEOUT

      public static final int TIMEOUT
      Client or server has timed out.
      See Also:
    • ALWAYS_FORBIDDEN

      public static final int ALWAYS_FORBIDDEN
      Operation not allowed in current configuration.
      See Also:
    • PARTITION_UNAVAILABLE

      public static final int PARTITION_UNAVAILABLE
      Partition is unavailable.
      See Also:
    • BIN_TYPE_ERROR

      public static final int BIN_TYPE_ERROR
      Operation is not supported with configured bin type.
      See Also:
    • RECORD_TOO_BIG

      public static final int RECORD_TOO_BIG
      Record size exceeds limit.
      See Also:
    • KEY_BUSY

      public static final int KEY_BUSY
      Too many concurrent operations on the same record.
      See Also:
    • SCAN_ABORT

      public static final int SCAN_ABORT
      Scan aborted by server.
      See Also:
    • UNSUPPORTED_FEATURE

      public static final int UNSUPPORTED_FEATURE
      Unsupported Server Feature (e.g. Scan + UDF)
      See Also:
    • BIN_NOT_FOUND

      public static final int BIN_NOT_FOUND
      Bin not found on update-only operation.
      See Also:
    • DEVICE_OVERLOAD

      public static final int DEVICE_OVERLOAD
      Device not keeping up with writes.
      See Also:
    • KEY_MISMATCH

      public static final int KEY_MISMATCH
      Key type mismatch.
      See Also:
    • INVALID_NAMESPACE

      public static final int INVALID_NAMESPACE
      Invalid namespace.
      See Also:
    • BIN_NAME_TOO_LONG

      public static final int BIN_NAME_TOO_LONG
      Bin name length greater than 15 characters or maximum bins exceeded.
      See Also:
    • FAIL_FORBIDDEN

      public static final int FAIL_FORBIDDEN
      Operation not allowed at this time.
      See Also:
    • ELEMENT_NOT_FOUND

      public static final int ELEMENT_NOT_FOUND
      Map element not found in UPDATE_ONLY write mode.
      See Also:
    • ELEMENT_EXISTS

      public static final int ELEMENT_EXISTS
      Map element exists in CREATE_ONLY write mode.
      See Also:
    • ENTERPRISE_ONLY

      public static final int ENTERPRISE_ONLY
      Attempt to use an Enterprise feature on a Community server or a server without the applicable feature key.
      See Also:
    • OP_NOT_APPLICABLE

      public static final int OP_NOT_APPLICABLE
      The operation cannot be applied to the current bin value on the server.
      See Also:
    • FILTERED_OUT

      public static final int FILTERED_OUT
      The transaction was not performed because the filter was false.
      See Also:
    • LOST_CONFLICT

      public static final int LOST_CONFLICT
      Write command loses conflict to XDR.
      See Also:
    • QUERY_END

      public static final int QUERY_END
      There are no more records left for query.
      See Also:
    • SECURITY_NOT_SUPPORTED

      public static final int SECURITY_NOT_SUPPORTED
      Security functionality not supported by connected server.
      See Also:
    • SECURITY_NOT_ENABLED

      public static final int SECURITY_NOT_ENABLED
      Security functionality not enabled by connected server.
      See Also:
    • SECURITY_SCHEME_NOT_SUPPORTED

      public static final int SECURITY_SCHEME_NOT_SUPPORTED
      Security type not supported by connected server.
      See Also:
    • INVALID_COMMAND

      public static final int INVALID_COMMAND
      Administration command is invalid.
      See Also:
    • INVALID_FIELD

      public static final int INVALID_FIELD
      Administration field is invalid.
      See Also:
    • ILLEGAL_STATE

      public static final int ILLEGAL_STATE
      Security protocol not followed.
      See Also:
    • INVALID_USER

      public static final int INVALID_USER
      User name is invalid.
      See Also:
    • USER_ALREADY_EXISTS

      public static final int USER_ALREADY_EXISTS
      User was previously created.
      See Also:
    • INVALID_PASSWORD

      public static final int INVALID_PASSWORD
      Password is invalid.
      See Also:
    • EXPIRED_PASSWORD

      public static final int EXPIRED_PASSWORD
      Password has expired.
      See Also:
    • FORBIDDEN_PASSWORD

      public static final int FORBIDDEN_PASSWORD
      Forbidden password (e.g. recently used)
      See Also:
    • INVALID_CREDENTIAL

      public static final int INVALID_CREDENTIAL
      Security credential is invalid.
      See Also:
    • EXPIRED_SESSION

      public static final int EXPIRED_SESSION
      Login session expired.
      See Also:
    • INVALID_ROLE

      public static final int INVALID_ROLE
      Role name is invalid.
      See Also:
    • ROLE_ALREADY_EXISTS

      public static final int ROLE_ALREADY_EXISTS
      Role already exists.
      See Also:
    • INVALID_PRIVILEGE

      public static final int INVALID_PRIVILEGE
      Privilege is invalid.
      See Also:
    • INVALID_WHITELIST

      public static final int INVALID_WHITELIST
      Invalid IP address whitelist.
      See Also:
    • QUOTAS_NOT_ENABLED

      public static final int QUOTAS_NOT_ENABLED
      Quotas not enabled on server.
      See Also:
    • INVALID_QUOTA

      public static final int INVALID_QUOTA
      Invalid quota value.
      See Also:
    • NOT_AUTHENTICATED

      public static final int NOT_AUTHENTICATED
      User must be authentication before performing database operations.
      See Also:
    • ROLE_VIOLATION

      public static final int ROLE_VIOLATION
      User does not possess the required role to perform the database operation.
      See Also:
    • NOT_WHITELISTED

      public static final int NOT_WHITELISTED
      Command not allowed because sender IP address not whitelisted.
      See Also:
    • QUOTA_EXCEEDED

      public static final int QUOTA_EXCEEDED
      Quota exceeded.
      See Also:
    • UDF_BAD_RESPONSE

      public static final int UDF_BAD_RESPONSE
      A user defined function returned an error code.
      See Also:
    • BATCH_DISABLED

      public static final int BATCH_DISABLED
      Batch functionality has been disabled.
      See Also:
    • BATCH_MAX_REQUESTS_EXCEEDED

      public static final int BATCH_MAX_REQUESTS_EXCEEDED
      Batch max requests have been exceeded.
      See Also:
    • BATCH_QUEUES_FULL

      public static final int BATCH_QUEUES_FULL
      All batch queues are full.
      See Also:
    • INDEX_ALREADY_EXISTS

      public static final int INDEX_ALREADY_EXISTS
      Secondary index already exists.
      See Also:
    • INDEX_FOUND

      public static final int INDEX_FOUND
      See Also:
    • INDEX_NOTFOUND

      public static final int INDEX_NOTFOUND
      Requested secondary index does not exist.
      See Also:
    • INDEX_OOM

      public static final int INDEX_OOM
      Secondary index memory space exceeded.
      See Also:
    • INDEX_NOTREADABLE

      public static final int INDEX_NOTREADABLE
      Secondary index not available.
      See Also:
    • INDEX_GENERIC

      public static final int INDEX_GENERIC
      Generic secondary index error.
      See Also:
    • INDEX_NAME_MAXLEN

      public static final int INDEX_NAME_MAXLEN
      Index name maximum length exceeded.
      See Also:
    • INDEX_MAXCOUNT

      public static final int INDEX_MAXCOUNT
      Maximum number of indicies exceeded.
      See Also:
    • QUERY_ABORTED

      public static final int QUERY_ABORTED
      Secondary index query aborted.
      See Also:
    • QUERY_QUEUEFULL

      public static final int QUERY_QUEUEFULL
      Secondary index queue full.
      See Also:
    • QUERY_TIMEOUT

      public static final int QUERY_TIMEOUT
      Secondary index query timed out on server.
      See Also:
    • QUERY_GENERIC

      public static final int QUERY_GENERIC
      Generic query error.
      See Also:
  • Constructor Details

    • ResultCode

      public ResultCode()
  • Method Details

    • keepConnection

      public static boolean keepConnection(int resultCode)
      Should connection be put back into pool.
    • getResultString

      public static String getResultString(int resultCode)
      Return result code as a string.