akka.cluster.routing
Class WeightedRoutees

java.lang.Object
  extended by akka.cluster.routing.WeightedRoutees

public class WeightedRoutees
extends java.lang.Object

INTERNAL API

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


Constructor Summary
WeightedRoutees(scala.collection.immutable.IndexedSeq<Routee> routees, Address selfAddress, scala.collection.immutable.Map<Address,java.lang.Object> weights)
           
 
Method Summary
 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

isEmpty

public boolean isEmpty()

total

public int total()

apply

public Routee apply(int value)
Pick the routee matching a value, from 1 to total.

Parameters:
value - (undocumented)
Returns:
(undocumented)