@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.748Z") @Stability(value=Experimental) public interface RouteBaseProps extends software.amazon.jsii.JsiiSerializable
Example:
VirtualRouter router;
VirtualNode node;
router.addRoute("route-http2-retry", RouteBaseProps.builder()
.routeSpec(RouteSpec.http2(HttpRouteSpecOptions.builder()
.weightedTargets(List.of(WeightedTarget.builder().virtualNode(node).build()))
.retryPolicy(HttpRetryPolicy.builder()
// Retry if the connection failed
.tcpRetryEvents(List.of(TcpRetryEvent.CONNECTION_ERROR))
// Retry if HTTP responds with a gateway error (502, 503, 504)
.httpRetryEvents(List.of(HttpRetryEvent.GATEWAY_ERROR))
// Retry five times
.retryAttempts(5)
// Use a 1 second timeout per retry
.retryTimeout(Duration.seconds(1))
.build())
.build()))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
RouteBaseProps.Builder
A builder for
RouteBaseProps |
static class |
RouteBaseProps.Jsii$Proxy
An implementation for
RouteBaseProps |
| Modifier and Type | Method and Description |
|---|---|
static RouteBaseProps.Builder |
builder() |
default String |
getRouteName()
(experimental) The name of the route.
|
RouteSpec |
getRouteSpec()
(experimental) Protocol specific spec.
|
@Stability(value=Experimental) @NotNull RouteSpec getRouteSpec()
@Stability(value=Experimental) @Nullable default String getRouteName()
Default: - An automatically generated name
@Stability(value=Experimental) static RouteBaseProps.Builder builder()
RouteBaseProps.Builder of RouteBasePropsCopyright © 2022. All rights reserved.