|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.cluster.routing.WeightedRoutees
public class WeightedRoutees
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 |
---|
public WeightedRoutees(scala.collection.immutable.IndexedSeq<Routee> routees, Address selfAddress, scala.collection.immutable.Map<Address,java.lang.Object> weights)
Method Detail |
---|
public boolean isEmpty()
public int total()
public Routee apply(int value)
value
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |