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.