RetryPolicy class final

The retry policy: budget + exponential backoff shape.

Constructors

RetryPolicy({required int maxAttempts, required int backoffBaseMs, double backoffFactor = 2.0, bool repairPartialWrites = true})
const

Properties

backoffBaseMs int
First backoff wait in virtual ms: wait_n = base * factor^(n-1).
final
backoffFactor double
Exponential factor.
final
hashCode int
The hash code for this object.
no setterinherited
maxAttempts int
Total attempts allowed (the first try + retries).
final
repairPartialWrites bool
Whether partial-write markers are repaired by a re-push.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

backoffMsFor(int attempt) int
The backoff wait (virtual ms) after the attemptth failure (1-based).
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