Package akka.cluster.metrics
Class WeightedRoutees
- java.lang.Object
-
- akka.cluster.metrics.WeightedRoutees
-
public class WeightedRoutees extends java.lang.Object
Pick the routee matching a value, from 1 to total.
-
-
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()
-
-
-
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()
-
-