Class ClusterRouterPool

java.lang.Object
org.apache.pekko.cluster.routing.ClusterRouterPool
All Implemented Interfaces:
Serializable, ClusterRouterConfigBase, Pool, RouterConfig, scala.Equals, scala.Product

public final class ClusterRouterPool extends Object implements Pool, ClusterRouterConfigBase, scala.Product, Serializable
pekko.routing.RouterConfig implementation for deployment on cluster nodes. Delegates other duties to the local pekko.routing.RouterConfig, which makes it possible to mix this with the built-in routers such as pekko.routing.RoundRobinGroup or custom routers.
See Also:
  • Constructor Details

  • Method Details

    • apply

      public static ClusterRouterPool apply(Pool local, ClusterRouterPoolSettings settings)
    • unapply

      public static scala.Option<scala.Tuple2<Pool,ClusterRouterPoolSettings>> unapply(ClusterRouterPool x$0)
    • local

      public Pool local()
      Specified by:
      local in interface ClusterRouterConfigBase
    • settings

      public ClusterRouterPoolSettings settings()
      Specified by:
      settings in interface ClusterRouterConfigBase
    • nrOfInstances

      public int nrOfInstances(ActorSystem sys)
      Initial number of routee instances
      Specified by:
      nrOfInstances in interface Pool
    • resizer

      public scala.Option<Resizer> resizer()
      Description copied from interface: Pool
      Pool with dynamically resizable number of routees return the pekko.routing.Resizer to 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.
      Specified by:
      resizer in interface Pool
    • supervisorStrategy

      public SupervisorStrategy supervisorStrategy()
      Description copied from interface: Pool
      SupervisorStrategy for the head actor, i.e. for supervising the routees of the pool.
      Specified by:
      supervisorStrategy in interface Pool
    • withFallback

      public RouterConfig withFallback(RouterConfig other)
      Description copied from interface: RouterConfig
      Overridable merge strategy, by default completely prefers this (i.e. no merge).
      Specified by:
      withFallback in interface RouterConfig
    • copy

      public ClusterRouterPool copy(Pool local, ClusterRouterPoolSettings settings)
    • copy$default$1

      public Pool copy$default$1()
    • copy$default$2

      public ClusterRouterPoolSettings copy$default$2()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object