Package org.apache.pekko.cluster.routing
Interface ClusterRouterConfigBase
- All Superinterfaces:
RouterConfig,Serializable
- All Known Implementing Classes:
ClusterRouterGroup,ClusterRouterPool
INTERNAL API
-
Method Summary
Modifier and TypeMethodDescriptioncreateRouter(ActorSystem system) Create the actual router, responsible for routing messages to routees.booleanIs the message handled by the router head actor or theRouterConfig.routingLogicController(org.apache.pekko.routing.RoutingLogic)actor.local()Dispatcher ID to use for running the “head” actor, which handles supervision, death watch and router management messagesscala.Option<Props>routingLogicController(RoutingLogic routingLogic) Possibility to define an actor for controlling the routing logic from external stimuli (e.g.settings()booleanSpecify that this router should stop itself when all routees have terminated (been removed).booleanMethods inherited from interface org.apache.pekko.routing.RouterConfig
createRouterActor, verifyConfig, withFallback
-
Method Details
-
createRouter
Description copied from interface:RouterConfigCreate the actual router, responsible for routing messages to routees.- Specified by:
createRouterin interfaceRouterConfig- Parameters:
system- the ActorSystem this router belongs to
-
isManagementMessage
Description copied from interface:RouterConfigIs the message handled by the router head actor or theRouterConfig.routingLogicController(org.apache.pekko.routing.RoutingLogic)actor.- Specified by:
isManagementMessagein interfaceRouterConfig
-
local
RouterConfig local() -
routerDispatcher
String routerDispatcher()Description copied from interface:RouterConfigDispatcher ID to use for running the “head” actor, which handles supervision, death watch and router management messages- Specified by:
routerDispatcherin interfaceRouterConfig
-
routingLogicController
Description copied from interface:RouterConfigPossibility to define an actor for controlling the routing logic from external stimuli (e.g. monitoring metrics). This actor will be a child of the router "head" actor. Management messages not handled by the "head" actor are delegated to this controller actor.- Specified by:
routingLogicControllerin interfaceRouterConfig
-
settings
ClusterRouterSettingsBase settings() -
stopRouterWhenAllRouteesRemoved
boolean stopRouterWhenAllRouteesRemoved()Description copied from interface:RouterConfigSpecify that this router should stop itself when all routees have terminated (been removed). By Default it istrue, unless aresizeris used.- Specified by:
stopRouterWhenAllRouteesRemovedin interfaceRouterConfig
-
super$isManagementMessage
-