GrpcRouteRetryPolicy class

The specifications for retries.

Constructors

GrpcRouteRetryPolicy({int? numRetries, List<String>? retryConditions})
GrpcRouteRetryPolicy.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
numRetries int?
Specifies the allowed number of retries.
getter/setter pair
retryConditions List<String>?
  • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts.

  • refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: Router will retry if the gRPC status code in the response header is set to cancelled - deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded - resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted - unavailable: Router will retry if the gRPC status code in the response header is set to unavailable

  • getter/setter pair
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited

    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