Class DynamicWeightedRandomSelectionImpl<T>

java.lang.Object
org.apache.bookkeeper.client.DynamicWeightedRandomSelectionImpl<T>
All Implemented Interfaces:
WeightedRandomSelection<T>

class DynamicWeightedRandomSelectionImpl<T> extends Object implements WeightedRandomSelection<T>
DynamicWeightedRandomSelectionImpl class implements both getNextRandom overloaded methods. Where getNextRandom() method considers all bookies it knows of as candidates, but getNextRandom(Collection selectedNodes) method considers only 'selectedNodes' as candidates.