Interface HttpRouteSpecOptions

All Superinterfaces:, RouteSpecOptionsBase
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.101Z") @Stability(Stable) public interface HttpRouteSpecOptions extends, RouteSpecOptionsBase
Properties specific for HTTP Based Routes.


 VirtualRouter router;
 VirtualNode node;
 router.addRoute("route-http2-retry", RouteBaseProps.builder()
                         // Retry if the connection failed
                         // Retry if HTTP responds with a gateway error (502, 503, 504)
                         // Retry five times
                         // Use a 1 second timeout per retry
  • Method Details

    • getWeightedTargets

      @Stability(Stable) @NotNull List<WeightedTarget> getWeightedTargets()
      List of targets that traffic is routed to when a request matches the route.
    • getMatch

      @Stability(Stable) @Nullable default HttpRouteMatch getMatch()
      The criterion for determining a request match for this Route.

      Default: - matches on '/'

    • getRetryPolicy

      @Stability(Stable) @Nullable default HttpRetryPolicy getRetryPolicy()
      The retry policy.

      Default: - no retry policy

    • getTimeout

      @Stability(Stable) @Nullable default HttpTimeout getTimeout()
      An object that represents a http timeout.

      Default: - None

    • builder

      @Stability(Stable) static HttpRouteSpecOptions.Builder builder()
      a HttpRouteSpecOptions.Builder of HttpRouteSpecOptions