Package org.infinispan.server.router
Class Router
java.lang.Object
org.infinispan.server.router.Router
The main entry point for the router.
- Author:
- Sebastian Ćaskawiec
-
Constructor Summary
ConstructorsConstructorDescriptionRouter(RouterConfiguration routerConfiguration) Creates newRouterbased onRouterConfiguration. -
Method Summary
Modifier and TypeMethodDescriptiongetRouter(EndpointRouter.Protocol protocol) Gets internalEndpointRouterimplementation for given protocol.voidstart()Starts the router.voidstop()Stops the router.
-
Constructor Details
-
Router
Creates newRouterbased onRouterConfiguration.- Parameters:
routerConfiguration-RouterConfigurationobject.
-
-
Method Details
-
start
public void start()Starts the router. -
stop
public void stop()Stops the router. -
getRouter
Gets internalEndpointRouterimplementation for given protocol.- Parameters:
protocol- Protocol for obtaining the router.- Returns:
- The
EndpointRouterimplementation.
-