|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<GenerationPolicy> com.aerospike.client.policy.GenerationPolicy
public enum GenerationPolicy
How to handle record writes based on record generation.
Enum Constant Summary | |
---|---|
DUPLICATE
Create duplicate record if expected generation is not equal to server generation. |
|
EXPECT_GEN_EQUAL
Update/delete record if expected generation is equal to server generation. |
|
EXPECT_GEN_GT
Update/delete record if expected generation greater than the server generation. |
|
NONE
Do not use record generation to restrict writes. |
Method Summary | |
---|---|
static GenerationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GenerationPolicy[] |
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 |
---|
public static final GenerationPolicy NONE
public static final GenerationPolicy EXPECT_GEN_EQUAL
public static final GenerationPolicy EXPECT_GEN_GT
public static final GenerationPolicy DUPLICATE
Method Detail |
---|
public static GenerationPolicy[] values()
for (GenerationPolicy c : GenerationPolicy.values()) System.out.println(c);
public static GenerationPolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |