RetryOptions class

Options of RetryingClient; the defaults follow docs/RETRIES.md.

Constructors

RetryOptions({int maxRetries = 3, Duration baseDelay = const Duration(milliseconds: 500), Duration maxDelay = const Duration(seconds: 30), int inProgressRetries = 10, RetryCallback? onRetry, RetrySleep sleep = _defaultSleep})
const

Properties

baseDelay → Duration
First backoff step.
final
hashCode → int
The hash code for this object.
no setterinherited
inProgressRetries → int
Retries for a 202 or 409 with code 12002 (the same Idempotency-Key is still being processed).
final
maxDelay → Duration
Upper bound of any wait, including Retry-After.
final
maxRetries → int
Retries after the first attempt for network errors, 429 and 502/503/504 (so at most 4 attempts).
final
onRetry → RetryCallback?
Optional callback for logging.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sleep → RetrySleep
The wait function (injectable for tests).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited