public enum MaxCommandAction extends Enum<MaxCommandAction>
This class is not used by the new efficient asynchronous client. This class exists solely to provide compatibility with legacy applications.
How to handle cases when the asynchronous maximum number of concurrent database commands have been exceeded.
Enum Constant and Description |
---|
ACCEPT
Accept and process command.
|
BLOCK
Block until a previous command completes.
|
REJECT
Reject database command.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final MaxCommandAction ACCEPT
public static final MaxCommandAction REJECT
public static final MaxCommandAction BLOCK
public static MaxCommandAction[] values()
for (MaxCommandAction c : MaxCommandAction.values()) System.out.println(c);
public static MaxCommandAction 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 nullCopyright ? 2012–2018 Aerospike, Inc. All rights reserved.