Package org.apache.pekko.remote.routing
Class RemoteRouterConfig
java.lang.Object
org.apache.pekko.remote.routing.RemoteRouterConfig
- All Implemented Interfaces:
Serializable,Pool,RouterConfig,scala.Equals,scala.Product
pekko.routing.RouterConfig implementation for remote deployment on defined
target nodes. Delegates other duties to the local pekko.routing.Pool,
which makes it possible to mix this with the built-in routers such as
pekko.routing.RoundRobinGroup or custom routers.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteRouterConfig(Pool local, Iterable<Address> nodes) RemoteRouterConfig(Pool local, Address[] nodes) RemoteRouterConfig(Pool local, scala.collection.Iterable<Address> nodes) -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteRouterConfigbooleanscala.collection.Iterable<Address>createRouter(ActorSystem system) Create the actual router, responsible for routing messages to routees.org.apache.pekko.routing.RouterActorINTERNAL APIbooleaninthashCode()local()newRoutee(Props routeeProps, ActorContext context) INTERNAL APIscala.collection.Iterable<Address>nodes()intnrOfInstances(ActorSystem sys) Initial number of routee instancesintproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>scala.Option<Resizer>resizer()Pool with dynamically resizable number of routees return thepekko.routing.Resizerto use.Dispatcher ID to use for running the “head” actor, which handles supervision, death watch and router management messagesSupervisorStrategy for the head actor, i.e.toString()withFallback(RouterConfig other) Overridable merge strategy, by default completely prefersthis(i.e.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.pekko.routing.Pool
enrichWithPoolDispatcher, props, stopRouterWhenAllRouteesRemoved, usePoolDispatcherMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.routing.RouterConfig
isManagementMessage, routingLogicController, verifyConfig
-
Constructor Details
-
RemoteRouterConfig
-
RemoteRouterConfig
-
RemoteRouterConfig
-
-
Method Details
-
apply
-
unapply
public static scala.Option<scala.Tuple2<Pool,scala.collection.Iterable<Address>>> unapply(RemoteRouterConfig x$0) -
local
-
nodes
-
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
-
nrOfInstances
Description copied from interface:PoolInitial number of routee instances- Specified by:
nrOfInstancesin interfacePool
-
newRoutee
Description copied from interface:PoolINTERNAL API -
createRouterActor
public org.apache.pekko.routing.RouterActor createRouterActor()Description copied from interface:PoolINTERNAL API- Specified by:
createRouterActorin interfacePool- Specified by:
createRouterActorin interfaceRouterConfig
-
supervisorStrategy
Description copied from interface:PoolSupervisorStrategy for the head actor, i.e. for supervising the routees of the pool.- Specified by:
supervisorStrategyin interfacePool
-
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
-
resizer
Description copied from interface:PoolPool with dynamically resizable number of routees return thepekko.routing.Resizerto use. The resizer is invoked once when the router is created, before any messages can be sent to it. Resize is also triggered when messages are sent to the routees, and the resizer is invoked asynchronously, i.e. not necessarily before the message has been sent. -
withFallback
Description copied from interface:RouterConfigOverridable merge strategy, by default completely prefersthis(i.e. no merge).- Specified by:
withFallbackin interfaceRouterConfig
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-