@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-14T16:25:34.407Z")
public interface RouteBaseProps
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 java.lang.String |
getRouteName()
The name of the route.
|
RouteSpec |
getRouteSpec()
Protocol specific spec.
|
RouteSpec getRouteSpec()
default java.lang.String getRouteName()
Default: - An automatically generated name
static RouteBaseProps.Builder builder()
RouteBaseProps.Builder
of RouteBaseProps