Class TxnServiceOperation
java.lang.Object
io.vertx.ext.consul.TxnServiceOperation
- All Implemented Interfaces:
TxnOperation
Holds the operation to apply to the service inside a transaction
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorConstructor from JSON -
Method Summary
Modifier and TypeMethodDescriptiongetNode()Get the nodeReturns the type of operation in a transactionGet the servicegetType()Get the type of operation to performSet the nodesetServiceOptions(ServiceOptions serviceOptions) Set the servicesetType(TxnServiceVerb type) Set the type of operation to performtoJson()Convert to JSON
-
Constructor Details
-
TxnServiceOperation
public TxnServiceOperation()Default constructor -
TxnServiceOperation
-
-
Method Details
-
toJson
-
getType
Get the type of operation to perform- Returns:
- the type of operation to perform
-
getNode
-
getServiceOptions
-
setType
Set the type of operation to perform- Parameters:
type- the type of operation to perform- Returns:
- reference to this, for fluency
-
setNode
Set the node- Parameters:
node-- Returns:
- reference to this, for fluency
-
setServiceOptions
Set the service- Parameters:
serviceOptions-- Returns:
- reference to this, for fluency
-
getOperationType
Description copied from interface:TxnOperationReturns the type of operation in a transaction- Specified by:
getOperationTypein interfaceTxnOperation- Returns:
- the type of operation in a transaction
-