Package akka.routing

Class Resizer$


  • public class Resizer$
    extends java.lang.Object
    Decide if the capacity of the router need to be changed. Will be invoked when isTimeForResize returns true and no other resize is in progress.

    Return the number of routees to add or remove. Negative value will remove that number of routees. Positive value will add that number of routees. 0 will not change the routees.

    This method is invoked only in the context of the Router actor.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Resizer$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Resizer$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      scala.Option<Resizer> fromConfig​(com.typesafe.config.Config parentConfig)  
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final Resizer$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Resizer$

        public Resizer$()
    • Method Detail

      • fromConfig

        public scala.Option<Resizer> fromConfig​(com.typesafe.config.Config parentConfig)