HttpRetryPolicy class

An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents, a value for maxRetries, and a value for perRetryTimeout.

Constructors

HttpRetryPolicy({required int maxRetries, required Duration perRetryTimeout, List<String>? httpRetryEvents, List<TcpRetryPolicyEvent>? tcpRetryEvents})
HttpRetryPolicy.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
httpRetryEvents List<String>?
Specify at least one of the following values.
final
maxRetries int
The maximum number of retry attempts.
final
perRetryTimeout Duration
The timeout for each retry attempt.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tcpRetryEvents List<TcpRetryPolicyEvent>?
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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