RetryPolicy class abstract

Retry policy represents a policy used when retrying a network operation.

Can be implemented to create custom retry policy.

Implementers

Constructors

RetryPolicy(int maxRetries)
const
RetryPolicy.exponential({int? maxRetries, int? maximumDelay})
Exponential retry policy. Useful for production.
factory
RetryPolicy.linear({int? backoff, int? maxRetries, int? maximumDelay})
Linear retry policy. Useful for development.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
maxRetries int
Maximum retries in non-subscribe calls.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDelay(Fiber fiber) Duration
Returns a Duration that the SDK should wait before retrying.
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