Interface RetryStrategy.Builder

All Superinterfaces:
Buildable, CopyableBuilder<RetryStrategy.Builder,RetryStrategy>, SdkBuilder<RetryStrategy.Builder,RetryStrategy>, SdkPojo
Enclosing class:
RetryStrategy

public static interface RetryStrategy.Builder extends SdkPojo, CopyableBuilder<RetryStrategy.Builder,RetryStrategy>
  • Method Details

    • attempts

      RetryStrategy.Builder attempts(Integer attempts)

      The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.

      Parameters:
      attempts - The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluateOnExit

      RetryStrategy.Builder evaluateOnExit(Collection<EvaluateOnExit> evaluateOnExit)

      Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.

      Parameters:
      evaluateOnExit - Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluateOnExit

      RetryStrategy.Builder evaluateOnExit(EvaluateOnExit... evaluateOnExit)

      Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.

      Parameters:
      evaluateOnExit - Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluateOnExit

      RetryStrategy.Builder evaluateOnExit(Consumer<EvaluateOnExit.Builder>... evaluateOnExit)

      Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.

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

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

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