Package org.apache.bookkeeper.client
Interface WeightedRandomSelection<T>
-
- All Known Implementing Classes:
DynamicWeightedRandomSelectionImpl
,WeightedRandomSelectionImpl
interface WeightedRandomSelection<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
WeightedRandomSelection.WeightedObject
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getNextRandom()
T
getNextRandom(java.util.Collection<T> selectedNodes)
void
setMaxProbabilityMultiplier(int max)
void
updateMap(java.util.Map<T,WeightedRandomSelection.WeightedObject> map)
-
-
-
Method Detail
-
updateMap
void updateMap(java.util.Map<T,WeightedRandomSelection.WeightedObject> map)
-
getNextRandom
T getNextRandom()
-
setMaxProbabilityMultiplier
void setMaxProbabilityMultiplier(int max)
-
-