Class RetryPolicy.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<RetryPolicy>
co.yellowdog.platform.model.RetryPolicy.Builder
- Enclosing class:
RetryPolicy
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.maxRetries(int maxRetries) The maximum number of times aTaskcan be retried.retryErrors(Selection<TaskErrorSelector> retryErrors) toString()Methods inherited from class ValidatedBuilder
build, validate
-
Method Details
-
maxRetries
The maximum number of times aTaskcan be retried. The maximum total number of attempts will always be `maxRetries + 1` because the first attempt is not a retry. Must be 0 or higher. Zero is allowed if you want to be explicit, and to make it easy to change the number of retries without having to omit the policy. Specifying zero is effectively the same as having noRetryPolicy.- Returns:
this.
-
retryErrors
-
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUncheckedin classValidatedBuilder<RetryPolicy>- Returns:
- the object being built
-
toString
-