public class TxnServiceOperation extends Object implements TxnOperation
| Constructor and Description |
|---|
TxnServiceOperation()
Default constructor
|
TxnServiceOperation(JsonObject json)
Constructor from JSON
|
| Modifier and Type | Method and Description |
|---|---|
String |
getNode()
Get the node
|
TxnOperationType |
getOperationType()
Returns the type of operation in a transaction
|
ServiceOptions |
getServiceOptions()
Get the service
|
TxnServiceVerb |
getType()
Get the type of operation to perform
|
TxnServiceOperation |
setNode(String node)
Set the node
|
TxnServiceOperation |
setServiceOptions(ServiceOptions serviceOptions)
Set the service
|
TxnServiceOperation |
setType(TxnServiceVerb type)
Set the type of operation to perform
|
JsonObject |
toJson()
Convert to JSON
|
public TxnServiceOperation()
public TxnServiceOperation(JsonObject json)
json - the JSONpublic JsonObject toJson()
public TxnServiceVerb getType()
public String getNode()
public ServiceOptions getServiceOptions()
public TxnServiceOperation setType(TxnServiceVerb type)
type - the type of operation to performpublic TxnServiceOperation setNode(String node)
node - public TxnServiceOperation setServiceOptions(ServiceOptions serviceOptions)
serviceOptions - public TxnOperationType getOperationType()
TxnOperationgetOperationType in interface TxnOperationCopyright © 2025 Eclipse. All rights reserved.