|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RecordExistsAction> com.aerospike.client.policy.RecordExistsAction
public enum RecordExistsAction
How to handle writes when the record already exists.
Enum Constant Summary | |
---|---|
CREATE_ONLY
Create only. |
|
DUPLICATE
Deprecated. Use GenerationPolicy.DUPLICATE
in WritePolicy.generationPolicy instead. |
|
EXPECT_GEN_EQUAL
Deprecated. Use GenerationPolicy.EXPECT_GEN_EQUAL
in WritePolicy.generationPolicy instead. |
|
EXPECT_GEN_GT
Deprecated. Use GenerationPolicy.EXPECT_GEN_GT
in WritePolicy.generationPolicy instead. |
|
FAIL
Deprecated. Use CREATE_ONLY
instead. |
|
REPLACE
Create or update record. |
|
REPLACE_ONLY
Update record only. |
|
UPDATE
Create or update record. |
|
UPDATE_ONLY
Update record only. |
Method Summary | |
---|---|
static RecordExistsAction |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RecordExistsAction[] |
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 RecordExistsAction UPDATE
public static final RecordExistsAction UPDATE_ONLY
public static final RecordExistsAction REPLACE
public static final RecordExistsAction REPLACE_ONLY
public static final RecordExistsAction CREATE_ONLY
@Deprecated public static final RecordExistsAction FAIL
CREATE_ONLY
instead.@Deprecated public static final RecordExistsAction EXPECT_GEN_EQUAL
GenerationPolicy.EXPECT_GEN_EQUAL
in WritePolicy.generationPolicy
instead.@Deprecated public static final RecordExistsAction EXPECT_GEN_GT
GenerationPolicy.EXPECT_GEN_GT
in WritePolicy.generationPolicy
instead.@Deprecated public static final RecordExistsAction DUPLICATE
GenerationPolicy.DUPLICATE
in WritePolicy.generationPolicy
instead.Method Detail |
---|
public static RecordExistsAction[] values()
for (RecordExistsAction c : RecordExistsAction.values()) System.out.println(c);
public static RecordExistsAction 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 |