SessionIoRetryPolicy class final
Capped exponential-backoff schedule for session-file retries.
Constructors
- SessionIoRetryPolicy({int maxAttempts = defaultMaxAttempts, Duration initialBackoff = const Duration(milliseconds: 50), double multiplier = 4, Duration maxTotalBackoff = const Duration(milliseconds: 1500)})
-
Creates a SessionIoRetryPolicy.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialBackoff → Duration
-
The wait before the first retry; each later retry waits
multiplier × the previous wait.
final
- maxAttempts → int
-
Total attempts, including the initial one.
final
- maxTotalBackoff → Duration
-
Hard budget for the accumulated wait: a retry whose computed wait
would exceed the remaining budget is clamped to it, and once the
budget is spent no further retry happens — regardless of
maxAttempts.
final
- multiplier → double
-
Growth factor between consecutive waits.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
- defaultMaxAttempts → const int
- Total attempts (initial try + retries) before giving up.