Class RouteGraph
java.lang.Object
dev.relism.flash.ext.routeviewer.model.RouteGraph
Accumulates
RouteEvents at boot time and organizes them into an
ordered list of RouterNodes for rendering.
Thread-safety: events are emitted sequentially at registration time (single-threaded boot), so no synchronization is needed here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(RouteEvent event) Called once per route by theRouteListener.nodes()Returns the route graph as an ordered list ofRouterNodes, sorted from shortest namespace to longest (root first, deepest last).intTotal number of registered routes across all routers.
-
Constructor Details
-
RouteGraph
public RouteGraph()
-
-
Method Details
-
add
Called once per route by theRouteListener. -
nodes
Returns the route graph as an ordered list ofRouterNodes, sorted from shortest namespace to longest (root first, deepest last). -
totalRoutes
public int totalRoutes()Total number of registered routes across all routers.
-