Builder

open class Builder

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
@Nullable
open fun exponentiationFactor(): @Nullable Double
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
@Nullable
open fun initialInterval(): @Nullable Duration
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
@Nullable
open fun maxAttempts(): @Nullable Integer
Maximum number of attempts before giving up retrying.
open fun maxAttempts(@Nullable maxAttempts: @Nullable Integer): InvocationRetryPolicy.Builder
Sets the maximum number of attempts before giving up retrying.
Link copied to clipboard
@Nullable
open fun maxInterval(): @Nullable Duration
Upper bound for the computed retry delay.
open fun maxInterval(@Nullable maxInterval: @Nullable Duration): InvocationRetryPolicy.Builder
Sets the upper bound for the computed retry delay.
Link copied to clipboard
@Nullable
open fun onMaxAttempts(): @Nullable InvocationRetryPolicy.OnMaxAttempts
Behavior when the configured maxAttempts is reached.
Sets the behavior when the configured maxAttempts is reached.