@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.570Z") @Stability(value=Stable) public interface RouteBaseProps extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
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()
The name of the route.
|
RouteSpec |
getRouteSpec()
Protocol specific spec.
|
@Stability(value=Stable) @NotNull RouteSpec getRouteSpec()
@Stability(value=Stable) @Nullable default String getRouteName()
Default: - An automatically generated name
@Stability(value=Stable) static RouteBaseProps.Builder builder()
RouteBaseProps.Builder of RouteBasePropsCopyright © 2022. All rights reserved.