public enum TxnKVVerb extends Enum<TxnKVVerb>
Enum Constant and Description |
---|
CAS
Sets the Key to the given Value with check-and-set semantics.
|
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_CAS
Deletes the Key with check-and-set semantics.
|
DELETE_TREE
Deletes all keys with a prefix ofKey
|
GET
Gets the Key during the transaction.
|
GET_TREE
Gets all keys with a prefix of Key during the transaction.
|
LOCK
Locks the Key with the given Session.
|
SET
Sets the Key to the given Value
|
UNLOCK
Unlocks the Key with the given Session.
|
Modifier and Type | Method and Description |
---|---|
String |
getVerb() |
static TxnKVVerb |
ofVerb(String verb) |
static TxnKVVerb |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TxnKVVerb[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxnKVVerb SET
public static final TxnKVVerb CAS
public static final TxnKVVerb LOCK
public static final TxnKVVerb UNLOCK
public static final TxnKVVerb GET
public static final TxnKVVerb GET_TREE
public static final TxnKVVerb CHECK_INDEX
public static final TxnKVVerb CHECK_SESSION
public static final TxnKVVerb DELETE
public static final TxnKVVerb DELETE_TREE
public static final TxnKVVerb DELETE_CAS
public static TxnKVVerb[] values()
for (TxnKVVerb c : TxnKVVerb.values()) System.out.println(c);
public static TxnKVVerb 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 String getVerb()
Copyright © 2022 Eclipse. All rights reserved.