Class SagaOption.Builder

java.lang.Object
io.dapr.workflows.saga.SagaOption.Builder
Enclosing class:
SagaOption

public static final class SagaOption.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setParallelCompensation

      public SagaOption.Builder setParallelCompensation(boolean parallelCompensation)
      Set parallel compensation.
      Parameters:
      parallelCompensation - parallel compensation or not
      Returns:
      this builder itself
    • setMaxParallelThread

      public SagaOption.Builder setMaxParallelThread(int maxParallelThread)
      set max parallel thread.

      Only valid when parallelCompensation is true.

      Parameters:
      maxParallelThread - max parallel thread
      Returns:
      this builder itself
    • setContinueWithError

      public SagaOption.Builder setContinueWithError(boolean continueWithError)
      Set continue with error.

      Only valid when parallelCompensation is false.

      Parameters:
      continueWithError - continue with error or not
      Returns:
      this builder itself
    • build

      public SagaOption build()
      Build Saga optiion.
      Returns:
      Saga optiion