Class TcpRetryEvent
TCP events on which you may retry.
Inheritance
System.Object
TcpRetryEvent
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.AWS.AppMesh.dll
Syntax (csharp)
public sealed class TcpRetryEvent : Enum
Syntax (vb)
Public NotInheritable Class TcpRetryEvent
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
VirtualRouter router;
VirtualNode node;
router.AddRoute("route-http2-retry", new RouteBaseProps {
RouteSpec = RouteSpec.Http2(new HttpRouteSpecOptions {
WeightedTargets = new [] { new WeightedTarget { VirtualNode = node } },
RetryPolicy = new HttpRetryPolicy {
// Retry if the connection failed
TcpRetryEvents = new [] { TcpRetryEvent.CONNECTION_ERROR },
// Retry if HTTP responds with a gateway error (502, 503, 504)
HttpRetryEvents = new [] { HttpRetryEvent.GATEWAY_ERROR },
// Retry five times
RetryAttempts = 5,
// Use a 1 second timeout per retry
RetryTimeout = Duration.Seconds(1)
}
})
});
Synopsis
Fields
CONNECTION_ERROR | A connection error. |
value__ |
Fields
CONNECTION_ERROR
A connection error.
public const TcpRetryEvent CONNECTION_ERROR
Field Value
Type | Description |
---|---|
TcpRetryEvent |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |