Companion

object Companion

Properties

Link copied to clipboard

The error catalog's defaults, which the TypeScript client's resumes share: five attempts, a Retry-After of up to 5 seconds honored, 200 milliseconds doubled without one (FrameworkErrors.RETRY_ATTEMPTS, FrameworkErrors.RETRY_MAX_WAIT_SECONDS, FrameworkErrors.RETRY_BACKOFF_MILLIS).

Link copied to clipboard

One attempt: every problem is the caller's.

Functions

Link copied to clipboard
fun of(maxAttempts: Int, maxRetryAfter: Duration, backoff: Duration): RetryPolicy

A policy of the given bounds with Java types, for Java callers.

fun of(maxAttempts: Int = DEFAULT.maxAttempts, maxRetryAfter: Duration = DEFAULT.maxRetryAfter, backoff: Duration = DEFAULT.backoff): RetryPolicy

A policy of the given bounds; each left out is as in DEFAULT.