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<Routee> routees,
Address selfAddress,
scala.collection.immutable.Map<Address,java.lang.Object> weights) |
Modifier and Type | Method and Description |
---|---|
Routee |
apply(int value)
Pick the routee matching a value, from 1 to total.
|
boolean |
isEmpty() |
int |
total() |
public boolean isEmpty()
public int total()
public Routee apply(int value)
value
- (undocumented)