ExponentialRetryPolicy class abstract

The operation will be retried at exponential intervals.

The delay will be incremented by multiplier after each iteration (multiplier = 0.5 means 50% increment).

Inheritance

Constructors

ExponentialRetryPolicy({required int maxRetries, required Duration initialDelayInSeconds, required double multiplier, required Duration maximumDelayInSeconds})
Default constructor for ExponentialRetryPolicy.
factory
ExponentialRetryPolicy.fromJson(Map<String, dynamic> json)
Alternate constructor that creates a ExponentialRetryPolicy from a json.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
initialDelayInSeconds → Duration
The delay to be waited before executing the first retry.
no setter
maximumDelayInSeconds → Duration
The maximum time interval of the delay in seconds.
no setter
maxRetries → int
The maximum number of retries.
no setter
multiplier → double
The multiplier of the delay interval.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJson(Map<String, dynamic> json) → dynamic
Returns a value of the type you specify, deserialized from a JSON object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a JSON-encoded representation of the value you supply.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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