public enum GenerationPolicy extends Enum<GenerationPolicy>
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final GenerationPolicy NONE
public static final GenerationPolicy EXPECT_GEN_EQUAL
public static final GenerationPolicy EXPECT_GEN_GT
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 nameNullPointerException - if the argument is nullCopyright ? 2012–2018 Aerospike, Inc. All rights reserved.