public static class PartialKeyGrouping.BalancedTargetSelector extends Object implements PartialKeyGrouping.TargetSelector
Constructor and Description |
---|
BalancedTargetSelector() |
Modifier and Type | Method and Description |
---|---|
Integer |
chooseTask(int[] assignedTasks)
Chooses one of the incoming tasks and selects the one that has been selected the fewest times so far.
|
public Integer chooseTask(int[] assignedTasks)
chooseTask
in interface PartialKeyGrouping.TargetSelector
Copyright © 2023 The Apache Software Foundation. All rights reserved.