Package org.infinispan.server.router
Class RoutingTable
java.lang.Object
org.infinispan.server.router.RoutingTable
A container for routing information.
- Author:
- Sebastian Ćaskawiec
-
Constructor Summary
ConstructorsConstructorDescriptionRoutingTable(Set<Route<? extends RouteSource, ? extends RouteDestination>> routes) Creates newRoutingTable. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number ofRoutes present in the routing table.Stream<Route<? extends RouteSource,? extends RouteDestination>> Returns a stream of allRoutes in the routing table.<Source extends RouteSource,Destination extends RouteDestination>
Stream<Route<Source,Destination>> streamRoutes(Class<Source> sourceType, Class<Destination> destinationType) toString()
-
Constructor Details
-
RoutingTable
Creates newRoutingTable.- Parameters:
routes- A set ofRoutes for the routing table.
-
-
Method Details
-
routesCount
public int routesCount()Returns the number ofRoutes present in the routing table. -
streamRoutes
Returns a stream of allRoutes in the routing table. -
streamRoutes
public <Source extends RouteSource,Destination extends RouteDestination> Stream<Route<Source,Destination>> streamRoutes(Class<Source> sourceType, Class<Destination> destinationType) - Type Parameters:
Source- Type of theRouteSourceDestination- Type of theRouteDestination- Parameters:
sourceType- Class of theSourcetype.destinationType- Class of theDesitnationtype.- Returns:
-
toString
-