Interface RoutingCondition

All Known Implementing Classes:
CountingCondition

public interface RoutingCondition
Routing condition determines when an incoming request needs to be routed to the new endpoint. In different scenarios you may want to route different number of requests. For example, the implementation may choose to route a specific percentage of incoming requests to the new side, or in a cut-over scenario, all requests need to be directed.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns @code true} if the request should be routed.
  • Method Details

    • canRoute

      boolean canRoute()
      Returns @code true} if the request should be routed.
      Returns:
      true if the request should be routed.