public enum ConcurrencyControl extends Enum<ConcurrencyControl>
Enum Constant and Description |
---|
FAIL_ON_CONFLICT
The operation will fail if there is a conflict.
|
LAST_WRITE_WINS
The last write operation will win if there is a conflict.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static ConcurrencyControl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConcurrencyControl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcurrencyControl LAST_WRITE_WINS
public static final ConcurrencyControl FAIL_ON_CONFLICT
public static ConcurrencyControl[] values()
for (ConcurrencyControl c : ConcurrencyControl.values()) System.out.println(c);
public static ConcurrencyControl 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 nullpublic int getValue()