public static enum MapUpdate.Type extends java.lang.Enum<MapUpdate.Type>
Enum Constant and Description |
---|
LOCK
Acquires a read lock on a key.
|
PUT_IF_VERSION_MATCH
Updates an entry if the current version matches specified version.
|
REMOVE_IF_VERSION_MATCH
Removes an entry if the current version matches specified version.
|
VERSION_MATCH
Checks the version of a key without locking the key.
|
Modifier and Type | Method and Description |
---|---|
static MapUpdate.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapUpdate.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapUpdate.Type LOCK
This record type will check to ensure that the lock version matches the current version for the key in the map and acquire a read lock on the key for the duration of the transaction.
public static final MapUpdate.Type VERSION_MATCH
This record type will perform a simple version check during the prepare phase of the two-phase commit protocol to ensure that the key has not changed during a transaction.
public static final MapUpdate.Type PUT_IF_VERSION_MATCH
public static final MapUpdate.Type REMOVE_IF_VERSION_MATCH
public static MapUpdate.Type[] values()
for (MapUpdate.Type c : MapUpdate.Type.values()) System.out.println(c);
public static MapUpdate.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null