public class WeightedRoutees
extends java.lang.Object
Pick routee based on its weight. Higher weight, higher probability.
Constructor and Description |
---|
WeightedRoutees(scala.collection.immutable.IndexedSeq<akka.routing.Routee> routees,
akka.actor.Address selfAddress,
scala.collection.immutable.Map<akka.actor.Address,java.lang.Object> weights) |
Modifier and Type | Method and Description |
---|---|
akka.routing.Routee |
apply(int value)
Pick the routee matching a value, from 1 to total.
|
boolean |
isEmpty() |
int |
total() |