Interface RetryStrategy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RetryStrategy.Builder,,RetryStrategy> SdkBuilder<RetryStrategy.Builder,,RetryStrategy> SdkPojo
- Enclosing class:
RetryStrategy
-
Method Summary
Modifier and TypeMethodDescriptionThe number of times to move a job to theRUNNABLEstatus.evaluateOnExit(Collection<EvaluateOnExit> evaluateOnExit) Array of up to 5 objects that specify the conditions where jobs are retried or failed.evaluateOnExit(Consumer<EvaluateOnExit.Builder>... evaluateOnExit) Array of up to 5 objects that specify the conditions where jobs are retried or failed.evaluateOnExit(EvaluateOnExit... evaluateOnExit) Array of up to 5 objects that specify the conditions where jobs are retried or failed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
attempts
The number of times to move a job to the
RUNNABLEstatus. You can specify between 1 and 10 attempts. If the value ofattemptsis 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 theRUNNABLEstatus. You can specify between 1 and 10 attempts. If the value ofattemptsis 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
Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the
attemptsparameter 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 theattemptsparameter 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
Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the
attemptsparameter 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 theattemptsparameter 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
Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the
This is a convenience method that creates an instance of theattemptsparameter must also be specified. If none of the listed conditions match, then the job is retried.EvaluateOnExit.Builderavoiding the need to create one manually viaEvaluateOnExit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluateOnExit(List<EvaluateOnExit>).- Parameters:
evaluateOnExit- a consumer that will call methods onEvaluateOnExit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-