RetryConfig class
Configuration for retry behavior
Constructors
Properties
- backoffMultiplier → double
-
Multiplier for exponential backoff (default: 2.0)
final
- enabled → bool
-
Whether to enable retries (default: true)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialDelay → Duration
-
Initial delay between retries (default: 1 second)
final
- maxAttempts → int
-
Maximum number of retry attempts (default: 3)
final
- maxDelay → Duration
-
Maximum delay between retries (default: 10 seconds)
final
-
retryableStatusCodes
→ Set<
int> -
HTTP status codes that should trigger a retry
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDelayForAttempt(
int attempt) → Duration - Calculate delay for a given retry attempt
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited