private static class RpcExecutor.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 | 
|---|
| 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, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprivate static final int DEFAULT_MAX_CALL_DELAY
private final PriorityFunction priority
private final int maxDelay
public CallPriorityComparator(org.apache.hadoop.conf.Configuration conf, PriorityFunction priority)
public int compare(CallRunner a, CallRunner b)
compare in interface Comparator<CallRunner>Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.