@Singleton @Requires(beans=RoutesEndpoint.class) public class RxJavaRouteDataCollector extends java.lang.Object implements RouteDataCollector<java.util.Map<java.lang.String,java.lang.Object>>
Constructor and Description |
---|
RxJavaRouteDataCollector(RouteData routeData) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<java.util.Map<java.lang.String,java.lang.Object>> |
getData(java.util.stream.Stream<UriRoute> routes) |
protected java.lang.String |
getRouteKey(UriRoute route) |
public RxJavaRouteDataCollector(RouteData routeData)
routeData
- The RouteDatapublic org.reactivestreams.Publisher<java.util.Map<java.lang.String,java.lang.Object>> getData(java.util.stream.Stream<UriRoute> routes)
getData
in interface RouteDataCollector<java.util.Map<java.lang.String,java.lang.Object>>
routes
- A java stream of uri routesprotected java.lang.String getRouteKey(UriRoute route)
route
- The URI route