public class TxnKVOperation extends Object implements TxnOperation
| Constructor and Description | 
|---|
TxnKVOperation()
Default constructor 
 | 
TxnKVOperation(JsonObject json)
Constructor from JSON 
 | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getFlags()
Get the flags attached to this entry. 
 | 
long | 
getIndex()
Get the index used for locking, unlocking, and check-and-set operations. 
 | 
String | 
getKey()
Get the key 
 | 
TxnOperationType | 
getOperationType()
Returns the type of operation in a transaction 
 | 
String | 
getSession()
Get the session used for locking, unlocking, and check-and-set operations. 
 | 
TxnKVVerb | 
getType()
Get the type of operation to perform 
 | 
String | 
getValue()
Get the value 
 | 
TxnKVOperation | 
setFlags(long flags)
Set the flags attached to this entry. 
 | 
TxnKVOperation | 
setIndex(long index)
Set the index used for locking, unlocking, and check-and-set operations. 
 | 
TxnKVOperation | 
setKey(String key)
Set the key 
 | 
TxnKVOperation | 
setSession(String session)
Set the session used for locking, unlocking, and check-and-set operations. 
 | 
TxnKVOperation | 
setType(TxnKVVerb type)
Set the type of operation to perform 
 | 
TxnKVOperation | 
setValue(String value)
Set the value 
 | 
JsonObject | 
toJson()
Convert to JSON 
 | 
public TxnKVOperation()
public TxnKVOperation(JsonObject json)
json - the JSONpublic JsonObject toJson()
public TxnKVVerb getType()
public String getKey()
public String getValue()
public long getFlags()
public long getIndex()
public String getSession()
public TxnKVOperation setType(TxnKVVerb type)
type - the type of operation to performpublic TxnKVOperation setKey(String key)
key - the keypublic TxnKVOperation setValue(String value)
value - the valuepublic TxnKVOperation setFlags(long flags)
flags - the flags attached to this entry. Clients can choose to use this however makes sense for their application.public TxnKVOperation setIndex(long index)
index - the indexpublic TxnKVOperation setSession(String session)
session - the sessionpublic TxnOperationType getOperationType()
TxnOperationgetOperationType in interface TxnOperationCopyright © 2020 Eclipse. All rights reserved.