public interface Router<V>
RoutingContext.| Modifier and Type | Method and Description |
|---|---|
void |
dump(OutputStream output)
Dumps the content of this
Router. |
Routed<V> |
find(RoutingContext routingCtx)
Finds the value of mapping that matches the specified
RoutingContext. |
List<Routed<V>> |
findAll(RoutingContext routingCtx)
Finds all values of mapping that match the specified
RoutingContext. |
default boolean |
registerMetrics(MeterRegistry registry,
MeterIdPrefix idPrefix)
Registers the stats of this
Router to the specified MeterRegistry. |
Routed<V> find(RoutingContext routingCtx)
RoutingContext.Routed that wraps the matching value if there's a match.
Routed.empty() if there's no match.List<Routed<V>> findAll(RoutingContext routingCtx)
RoutingContext.Routed instances that wrap the matching value.default boolean registerMetrics(MeterRegistry registry, MeterIdPrefix idPrefix)
Router to the specified MeterRegistry.Router has been registered.void dump(OutputStream output)
Router.Copyright © 2020 LeanCloud. All rights reserved.