@InterfaceAudience.Private @InterfaceStability.Stable public class RandomQueueBalancer extends Object implements QueueBalancer
| Constructor and Description |
|---|
RandomQueueBalancer(org.apache.hadoop.conf.Configuration conf,
String executorName,
List<BlockingQueue<CallRunner>> queues) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNextQueue(CallRunner callRunner)
Returns the index of the next queue to which a request should be inserted
|
public RandomQueueBalancer(org.apache.hadoop.conf.Configuration conf,
String executorName,
List<BlockingQueue<CallRunner>> queues)
public int getNextQueue(CallRunner callRunner)
QueueBalancergetNextQueue in interface QueueBalancerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.