RouteSpecHttp2RouteRetryPolicy constructor
const
RouteSpecHttp2RouteRetryPolicy({})
Creates a new RouteSpecHttp2RouteRetryPolicy.
httpRetryEvents List of HTTP retry events. Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream).
maxRetries Maximum number of retries.
perRetryTimeout Per-retry timeout. See spec.http_route.retry_policy.per_retry_timeout Block for details.
tcpRetryEvents List of TCP retry events. The only valid value is connection-error. You must specify at least one value for httpRetryEvents, or at least one value for tcpRetryEvents.
Implementation
const RouteSpecHttp2RouteRetryPolicy({
this.httpRetryEvents,
required this.maxRetries,
required this.perRetryTimeout,
this.tcpRetryEvents,
});