Class RetryProperties.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<RetryProperties>
co.yellowdog.platform.model.RetryProperties.Builder
- Enclosing class:
RetryProperties
A builder that can be used to build a new RetryProperties that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.initialInterval
(Duration initialInterval) The initial interval before the first retry attempt.maxAttempts
(int maxAttempts) Set the number of attempts before retries are exhausted.maxInterval
(Duration maxInterval) The maximum interval between retry attempts.toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
maxAttempts
Set the number of attempts before retries are exhausted. Includes the initial attempt before the retries begin.- Parameters:
maxAttempts
- the number of attempts before retries are exhausted- Returns:
this
.
-
initialInterval
The initial interval before the first retry attempt.- Parameters:
initialInterval
- the initial interval before the first retry attempt- Returns:
this
.
-
maxInterval
The maximum interval between retry attempts.- Parameters:
maxInterval
- the maximum interval between retry attempts- Returns:
this
.
-
buildUnchecked
Description copied from class:ValidatedBuilder
Builds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUnchecked
in classValidatedBuilder<RetryProperties>
- Returns:
- the object being built
-
toString
-