Class GrpcRetryEvent
gRPC events.
Inheritance
System.Object
GrpcRetryEvent
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.AWS.AppMesh.dll
Syntax (csharp)
public sealed class GrpcRetryEvent : Enum
Syntax (vb)
Public NotInheritable Class GrpcRetryEvent
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
VirtualRouter router;
VirtualNode node;
router.AddRoute("route-grpc-retry", new RouteBaseProps {
RouteSpec = RouteSpec.Grpc(new GrpcRouteSpecOptions {
WeightedTargets = new [] { new WeightedTarget { VirtualNode = node } },
Match = new GrpcRouteMatch { ServiceName = "servicename" },
RetryPolicy = new GrpcRetryPolicy {
TcpRetryEvents = new [] { TcpRetryEvent.CONNECTION_ERROR },
HttpRetryEvents = new [] { HttpRetryEvent.GATEWAY_ERROR },
// Retry if gRPC responds that the request was cancelled, a resource
// was exhausted, or if the service is unavailable
GrpcRetryEvents = new [] { GrpcRetryEvent.CANCELLED, GrpcRetryEvent.RESOURCE_EXHAUSTED, GrpcRetryEvent.UNAVAILABLE },
RetryAttempts = 5,
RetryTimeout = Duration.Seconds(1)
}
})
});
Synopsis
Fields
CANCELLED | Request was cancelled. |
DEADLINE_EXCEEDED | The deadline was exceeded. |
INTERNAL_ERROR | Internal error. |
RESOURCE_EXHAUSTED | A resource was exhausted. |
UNAVAILABLE | The service is unavailable. |
value__ |
Fields
CANCELLED
Request was cancelled.
public const GrpcRetryEvent CANCELLED
Field Value
Type | Description |
---|---|
GrpcRetryEvent |
Remarks
DEADLINE_EXCEEDED
The deadline was exceeded.
public const GrpcRetryEvent DEADLINE_EXCEEDED
Field Value
Type | Description |
---|---|
GrpcRetryEvent |
Remarks
INTERNAL_ERROR
Internal error.
public const GrpcRetryEvent INTERNAL_ERROR
Field Value
Type | Description |
---|---|
GrpcRetryEvent |
Remarks
RESOURCE_EXHAUSTED
A resource was exhausted.
public const GrpcRetryEvent RESOURCE_EXHAUSTED
Field Value
Type | Description |
---|---|
GrpcRetryEvent |
Remarks
UNAVAILABLE
The service is unavailable.
public const GrpcRetryEvent UNAVAILABLE
Field Value
Type | Description |
---|---|
GrpcRetryEvent |
Remarks
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |