Interface FailureConditions.Builder

  • Method Details

    • result

      The specified result for when the failure conditions are met, such as rolling back the stage.

      Parameters:
      result - The specified result for when the failure conditions are met, such as rolling back the stage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • result

      The specified result for when the failure conditions are met, such as rolling back the stage.

      Parameters:
      result - The specified result for when the failure conditions are met, such as rolling back the stage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • retryConfiguration

      FailureConditions.Builder retryConfiguration(RetryConfiguration retryConfiguration)

      The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.

      Parameters:
      retryConfiguration - The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retryConfiguration

      default FailureConditions.Builder retryConfiguration(Consumer<RetryConfiguration.Builder> retryConfiguration)

      The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.

      This is a convenience method that creates an instance of the RetryConfiguration.Builder avoiding the need to create one manually via RetryConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to retryConfiguration(RetryConfiguration).

      Parameters:
      retryConfiguration - a consumer that will call methods on RetryConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • conditions

      The conditions that are configured as failure conditions.

      Parameters:
      conditions - The conditions that are configured as failure conditions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      FailureConditions.Builder conditions(Condition... conditions)

      The conditions that are configured as failure conditions.

      Parameters:
      conditions - The conditions that are configured as failure conditions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      The conditions that are configured as failure conditions.

      This is a convenience method that creates an instance of the Condition.Builder avoiding the need to create one manually via Condition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to conditions(List<Condition>).

      Parameters:
      conditions - a consumer that will call methods on Condition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: