GrpcRetryPolicy 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

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

Properties

grpcRetryEvents List<GrpcRetryPolicyEvent>?
Specify at least one of the valid values.
final
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