Package org.infinispan.server.router
Class Router
- java.lang.Object
-
- org.infinispan.server.router.Router
-
public class Router extends Object
The main entry point for the router.- Author:
- Sebastian Ćaskawiec
-
-
Constructor Summary
Constructors Constructor Description Router(RouterConfiguration routerConfiguration)Creates newRouterbased onRouterConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<EndpointRouter>getRouter(EndpointRouter.Protocol protocol)Gets internalEndpointRouterimplementation for given protocol.voidstart()Starts the router.voidstop()Stops the router.
-
-
-
Constructor Detail
-
Router
public Router(RouterConfiguration routerConfiguration)
Creates newRouterbased onRouterConfiguration.- Parameters:
routerConfiguration-RouterConfigurationobject.
-
-
Method Detail
-
start
public void start()
Starts the router.
-
stop
public void stop()
Stops the router.
-
getRouter
public Optional<EndpointRouter> getRouter(EndpointRouter.Protocol protocol)
Gets internalEndpointRouterimplementation for given protocol.- Parameters:
protocol- Protocol for obtaining the router.- Returns:
- The
EndpointRouterimplementation.
-
-