public sealed class GrpcRoute.Types.RetryPolicy : IMessage<GrpcRoute.Types.RetryPolicy>, IEquatable<GrpcRoute.Types.RetryPolicy>, IDeepCloneable<GrpcRoute.Types.RetryPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class GrpcRoute.Types.RetryPolicy.
The specifications for retries.
Implements
IMessageGrpcRouteTypesRetryPolicy, IEquatableGrpcRouteTypesRetryPolicy, IDeepCloneableGrpcRouteTypesRetryPolicy, IBufferMessage, IMessageNamespace
Google.Cloud.NetworkServices.V1Assembly
Google.Cloud.NetworkServices.V1.dll
Constructors
RetryPolicy()
public RetryPolicy()
RetryPolicy(RetryPolicy)
public RetryPolicy(GrpcRoute.Types.RetryPolicy other)
Parameter | |
---|---|
Name | Description |
other |
GrpcRouteTypesRetryPolicy |
Properties
NumRetries
public uint NumRetries { get; set; }
Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
Property Value | |
---|---|
Type | Description |
uint |
RetryConditions
public RepeatedField<string> RetryConditions { get; }
- 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
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |