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 SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate final intprivate final PriorityFunction
- 
Constructor SummaryConstructorsConstructorDescriptionCallPriorityComparator(org.apache.hadoop.conf.Configuration conf, PriorityFunction priority) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, 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:
- comparein interface- Comparator<CallRunner>
 
 
-