Class WeightedRoutees


  • public class WeightedRoutees
    extends java.lang.Object
    INTERNAL API

    Pick routee based on its weight. Higher weight, higher probability.

    • Constructor Summary

      Constructors 
      Constructor Description
      WeightedRoutees​(scala.collection.immutable.IndexedSeq<Routee> routees, Address selfAddress, scala.collection.immutable.Map<Address,​java.lang.Object> weights)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Routee apply​(int value)
      Pick the routee matching a value, from 1 to total.
      boolean isEmpty()  
      int total()  
      • Methods inherited from class java.lang.Object

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

      • WeightedRoutees

        public WeightedRoutees​(scala.collection.immutable.IndexedSeq<Routee> routees,
                               Address selfAddress,
                               scala.collection.immutable.Map<Address,​java.lang.Object> weights)
    • Method Detail

      • apply

        public Routee apply​(int value)
        Pick the routee matching a value, from 1 to total.
        Parameters:
        value - (undocumented)
        Returns:
        (undocumented)
      • isEmpty

        public boolean isEmpty()
      • total

        public int total()