Class ClusterRouterPool

    • Method Detail

      • verifyConfig

        public static void verifyConfig​(ActorPath path)
      • usePoolDispatcher

        public static boolean usePoolDispatcher()
      • enrichWithPoolDispatcher

        public static Props enrichWithPoolDispatcher​(Props routeeProps,
                                                     ActorContext context)
      • props

        public static Props props​(Props routeeProps)
      • stopRouterWhenAllRouteesRemoved

        public static boolean stopRouterWhenAllRouteesRemoved()
      • routerDispatcher

        public static java.lang.String routerDispatcher()
      • routingLogicController

        public static scala.Option<Props> routingLogicController​(RoutingLogic routingLogic)
      • isManagementMessage

        public static boolean isManagementMessage​(java.lang.Object msg)
      • newRoutee

        public Routee newRoutee​(Props routeeProps,
                                ActorContext context)
        INTERNAL API
        Specified by:
        newRoutee in interface Pool
        Parameters:
        routeeProps - (undocumented)
        context - (undocumented)
        Returns:
        (undocumented)
      • nrOfInstances

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

        public scala.Option<Resizer> resizer()
        Description copied from interface: Pool
        Pool with dynamically resizable number of routees return the 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
        Returns:
        (undocumented)
      • 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
        Returns:
        (undocumented)
      • 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
        Parameters:
        other - (undocumented)
        Returns:
        (undocumented)
      • copy$default$1

        public Pool copy$default$1()
      • productPrefix

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

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

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

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

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

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

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

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