Package io.dapr.workflows.saga
Class SagaOption.Builder
java.lang.Object
io.dapr.workflows.saga.SagaOption.Builder
- Enclosing class:
- SagaOption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build Saga optiion.setContinueWithError
(boolean continueWithError) Set continue with error.setMaxParallelThread
(int maxParallelThread) set max parallel thread.setParallelCompensation
(boolean parallelCompensation) Set parallel compensation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setParallelCompensation
Set parallel compensation.- Parameters:
parallelCompensation
- parallel compensation or not- Returns:
- this builder itself
-
setMaxParallelThread
set max parallel thread.Only valid when parallelCompensation is true.
- Parameters:
maxParallelThread
- max parallel thread- Returns:
- this builder itself
-
setContinueWithError
Set continue with error.Only valid when parallelCompensation is false.
- Parameters:
continueWithError
- continue with error or not- Returns:
- this builder itself
-
build
Build Saga optiion.- Returns:
- Saga optiion
-