Builder
Functions
Link copied to clipboard
Link copied to clipboard
Exponential backoff multiplier used to compute the next retry delay.
open fun exponentiationFactor(@Nullable exponentiationFactor: @Nullable Double): InvocationRetryPolicy.Builder
Sets the exponential backoff multiplier used to compute the next retry delay.
Link copied to clipboard
Initial delay before the first retry attempt.
open fun initialInterval(@Nullable initialInterval: @Nullable Duration): InvocationRetryPolicy.Builder
Sets the initial delay before the first retry attempt.
Link copied to clipboard
Maximum number of attempts before giving up retrying.
Sets the maximum number of attempts before giving up retrying.
Link copied to clipboard
Upper bound for the computed retry delay.
Sets the upper bound for the computed retry delay.
Link copied to clipboard
Behavior when the configured maxAttempts is reached.
open fun onMaxAttempts(@Nullable onMaxAttempts: @Nullable InvocationRetryPolicy.OnMaxAttempts): InvocationRetryPolicy.Builder
Sets the behavior when the configured maxAttempts is reached.