RetryPolicy
class RetryPolicy @InternalWowApi constructor(val maxAttempts: Int = HandlerRetry.DEFAULT_MAX_ATTEMPTS, val initialBackoff: Duration = 100.milliseconds, val maxBackoff: Duration = 5.seconds, val multiplier: Double = 2.0, val timeout: Duration = Duration.INFINITE)
How a failing call is retried: at most maxAttempts calls in all, waiting initialBackoff after the first failure and multiplier times longer after each next one, never longer than maxBackoff. A handler's attempt that runs longer than timeout is cancelled and counts as failed; infinite by default.
Properties
Functions
Link copied to clipboard
fun copyWith(maxAttempts: Int = this.maxAttempts, initialBackoff: Duration = this.initialBackoff, maxBackoff: Duration = this.maxBackoff, multiplier: Double = this.multiplier, timeout: Duration = this.timeout): RetryPolicy
This RetryPolicy with the given fields replaced: Wow's own copy, left out of the ABI.
Link copied to clipboard