Interface Router<V>


public interface Router<V>
Finds a mapping that matches a given RoutingContext.
  • Method Details

    • find

      Routed<V> find(RoutingContext routingCtx)
      Finds the value of mapping that matches the specified RoutingContext.
      Returns:
      a Routed that wraps the matching value if there's a match. Routed.empty() if there's no match.
    • findAll

      List<Routed<V>> findAll(RoutingContext routingCtx)
      Finds all values of mapping that match the specified RoutingContext.
      Returns:
      the Routed instances that wrap the matching value.
    • registerMetrics

      default boolean registerMetrics(io.micrometer.core.instrument.MeterRegistry registry, MeterIdPrefix idPrefix)
      Registers the stats of this Router to the specified MeterRegistry.
      Returns:
      whether the stats of this Router has been registered.
    • dump

      void dump(OutputStream output)
      Dumps the content of this Router.