RetryStrategy class final
Component to run http requests with retry logic.
Constructors
-
RetryStrategy({required Requester requester, required Duration readTimeout, required Duration writeTimeout, required Iterable<
Host> hosts}) - Constructs a RetryStrategy.
-
RetryStrategy.create({required AgentSegment segment, required String appId, required String apiKey, required Iterable<
Host> defaultHosts(), ClientOptions options = const ClientOptions()}) -
Creates RetryStrategy, defaults to
DioRequester
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- readTimeout → Duration
-
final
- requester → Requester
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- writeTimeout → Duration
-
final
Methods
-
dispose(
) → void - Release underlying resources.
-
execute(
{required ApiRequest request, RequestOptions? options}) → Future< Map< String, dynamic> > - Run an request and get a response.
-
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