Class DefaultRouteDataCollector
java.lang.Object
io.micronaut.management.endpoint.routes.impl.DefaultRouteDataCollector
- All Implemented Interfaces:
RouteDataCollector<Map<String,
Object>>
@Singleton
@Requires(beans=RoutesEndpoint.class)
public class DefaultRouteDataCollector
extends Object
implements RouteDataCollector<Map<String,Object>>
A Reactive route data collector.
- Since:
- 1.0
- Author:
- James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData
(Stream<UriRouteInfo<?, ?>> routes) protected String
getRouteKey
(UriRouteInfo<?, ?> route)
-
Constructor Details
-
DefaultRouteDataCollector
- Parameters:
routeData
- The RouteData
-
-
Method Details
-
getData
- Specified by:
getData
in interfaceRouteDataCollector<Map<String,
Object>> - Parameters:
routes
- A java stream of uri route infos- Returns:
- A publisher that returns data representing all given routes.
-
getRouteKey
- Parameters:
route
- The URI route- Returns:
- The route key
-