Class RoutingLogics.RandomLogic<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      RandomLogic()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void routeesUpdated​(scala.collection.immutable.Set<ActorRef<T>> newRoutees)
      Invoked an initial time before selectRoutee is ever called and then every time the set of available routees changes.
      ActorRef<T> selectRoutee​(T msg)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomLogic

        public RandomLogic()
    • Method Detail

      • routeesUpdated

        public void routeesUpdated​(scala.collection.immutable.Set<ActorRef<T>> newRoutees)
        Description copied from interface: RoutingLogic
        Invoked an initial time before selectRoutee is ever called and then every time the set of available routees changes.

        Specified by:
        routeesUpdated in interface RoutingLogic<T>
        Parameters:
        newRoutees - The updated set of routees. For a group router this could be empty, in that case selectRoutee() will not be called before routeesUpdated is invoked again with at least one routee. For a pool the pool stops instead of ever calling routeesUpdated with an empty list of routees.