Package org.infinispan.server.router
Class RoutingTable
- java.lang.Object
-
- org.infinispan.server.router.RoutingTable
-
public class RoutingTable extends Object
A container for routing information.- Author:
- Sebastian Ćaskawiec
-
-
Constructor Summary
Constructors Constructor Description RoutingTable(Set<Route<? extends RouteSource,? extends RouteDestination>> routes)Creates newRoutingTable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description introutesCount()Returns the number ofRoutes present in the routing table.Stream<Route<? extends RouteSource,? extends RouteDestination>>streamRoutes()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)StringtoString()
-
-
-
Constructor Detail
-
RoutingTable
public RoutingTable(Set<Route<? extends RouteSource,? extends RouteDestination>> routes)
Creates newRoutingTable.- Parameters:
routes- A set ofRoutes for the routing table.
-
-
Method Detail
-
routesCount
public int routesCount()
Returns the number ofRoutes present in the routing table.
-
streamRoutes
public Stream<Route<? extends RouteSource,? extends RouteDestination>> 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:
-
-