Retry Policy
open class RetryPolicy(retryPredicate: RetryPredicate = onException, delayStrategy: DelayStrategy = noDelay)
Represents a retry policy that combines a RetryPredicate and a DelayStrategy.
Since
1.0.0
Parameters
retry Predicate
The RetryPredicate used to evaluate whether a retry should be performed.
delay Strategy
The DelayStrategy used to determine the delay before a retry is attempted.
Constructors
Link copied to clipboard
Creates a new RetryPolicy with the specified RetryPredicate and DelayStrategy delegates.
Functions
Link copied to clipboard
Retries the given block using this RetryPolicy