com.aerospike.client.async
Enum MaxCommandAction

java.lang.Object
  extended by java.lang.Enum<MaxCommandAction>
      extended by com.aerospike.client.async.MaxCommandAction
All Implemented Interfaces:
Serializable, Comparable<MaxCommandAction>

public enum MaxCommandAction
extends Enum<MaxCommandAction>

How to handle cases when the asynchronous maximum number of concurrent database commands have been exceeded.


Enum Constant Summary
ACCEPT
          Accept and process command.
BLOCK
          Block until a previous command completes.
REJECT
          Reject database command.
 
Method Summary
static MaxCommandAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MaxCommandAction[] 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

ACCEPT

public static final MaxCommandAction ACCEPT
Accept and process command. This implies the user is responsible for throttling asynchronous load.


REJECT

public static final MaxCommandAction REJECT
Reject database command.


BLOCK

public static final MaxCommandAction BLOCK
Block until a previous command completes.

Method Detail

values

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

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

valueOf

public static MaxCommandAction 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


Copyright © 2012–2014 Aerospike, Inc. All rights reserved.