Package org.apache.hadoop.hbase.ipc
Class RpcExecutor.CallPriorityComparator
java.lang.Object
org.apache.hadoop.hbase.ipc.RpcExecutor.CallPriorityComparator
- All Implemented Interfaces:
Comparator<CallRunner>
- Enclosing class:
- RpcExecutor
private static class RpcExecutor.CallPriorityComparator
extends Object
implements Comparator<CallRunner>
Comparator used by the "normal callQueue" if DEADLINE_CALL_QUEUE_CONF_KEY is set to true. It
uses the calculated "deadline" e.g. to deprioritize long-running job If multiple requests have
the same deadline BoundedPriorityBlockingQueue will order them in FIFO (first-in-first-out)
manner.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final int
private final PriorityFunction
-
Constructor Summary
ConstructorDescriptionCallPriorityComparator
(org.apache.hadoop.conf.Configuration conf, PriorityFunction priority) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
DEFAULT_MAX_CALL_DELAY
- See Also:
-
priority
-
maxDelay
-
-
Constructor Details
-
CallPriorityComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<CallRunner>
-