RetryOptions class

Finite retry budget with jitter bounds and explicit permission for writes.

Constructors

RetryOptions({int maxAttempts = 3, Duration baseDelay = const Duration(milliseconds: 200), Duration maxDelay = const Duration(seconds: 30), bool retryWrites = false, Set<int> statuses = const {408, 429, 500, 502, 503, 504}})

Properties

baseDelay → Duration
final
hashCode → int
The hash code for this object.
no setterinherited
maxAttempts → int
Total attempts, including the original send.
final
maxDelay → Duration
Maximum backoff. Larger Retry-After values return the response without retry.
final
retryWrites → bool
Explicitly permits replayable writes; server idempotency remains caller policy.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statuses → Set<int>
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