Enum TxnKVVerb
- All Implemented Interfaces:
Serializable, Comparable<TxnKVVerb>
Holds type of KV operation in transaction
- Author:
- Ruslan Sennov
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSets the Key to the given Value with check-and-set semantics.Fails the transaction if Key does not have a modify index equal to IndexFails the transaction if Key is not currently locked by SessionDeletes the KeyDeletes the Key with check-and-set semantics.Deletes all keys with a prefix ofKeyGets the Key during the transaction.Gets all keys with a prefix of Key during the transaction.Locks the Key with the given Session.Sets the Key to the given ValueUnlocks the Key with the given Session. -
Method Summary
-
Enum Constant Details
-
SET
Sets the Key to the given Value -
CAS
Sets the Key to the given Value with check-and-set semantics. The Key will only be set if its current modify index matches the supplied Index -
LOCK
Locks the Key with the given Session. The Key will only obtain the lock if the Session is valid, and no other session has it locked -
UNLOCK
Unlocks the Key with the given Session. The Key will only release the lock if the Session is valid and currently has it locked -
GET
Gets the Key during the transaction. This fails the transaction if the Key doesn't exist. The key may not be present in the results if ACLs do not permit it to be read -
GET_TREE
Gets all keys with a prefix of Key during the transaction. This does not fail the transaction if the Key doesn't exist. Not all keys may be present in the results if ACLs do not permit them to be read -
CHECK_INDEX
Fails the transaction if Key does not have a modify index equal to Index -
CHECK_SESSION
Fails the transaction if Key is not currently locked by Session -
DELETE
Deletes the Key -
DELETE_TREE
Deletes all keys with a prefix ofKey -
DELETE_CAS
Deletes the Key with check-and-set semantics. The Key will only be deleted if its current modify index matches the supplied Index
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
ofVerb
-
getVerb
-