private static class SimpleRpcScheduler.CallPriorityComparator extends Object implements Comparator<CallRunner>
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_MAX_CALL_DELAY |
private int |
maxDelay |
private PriorityFunction |
priority |
Constructor and Description |
---|
SimpleRpcScheduler.CallPriorityComparator(org.apache.hadoop.conf.Configuration conf,
PriorityFunction priority) |
Modifier and Type | Method and Description |
---|---|
int |
compare(CallRunner a,
CallRunner b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
private static final int DEFAULT_MAX_CALL_DELAY
private final PriorityFunction priority
private final int maxDelay
public SimpleRpcScheduler.CallPriorityComparator(org.apache.hadoop.conf.Configuration conf, PriorityFunction priority)
public int compare(CallRunner a, CallRunner b)
compare
in interface Comparator<CallRunner>
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.