@InterfaceAudience.Private public class FastPathBalancedQueueRpcExecutor extends BalancedQueueRpcExecutor
RpcExecutor.Handler, RpcExecutor.QueueBalancerqueuescurrentQueueLimit, DEFAULT_CALL_QUEUE_SIZE_HARD_LIMIT| Constructor and Description |
|---|
FastPathBalancedQueueRpcExecutor(String name,
int handlerCount,
int numCallQueues,
Configuration conf,
Abortable abortable,
Class<? extends BlockingQueue> queueClass,
Object... args) |
FastPathBalancedQueueRpcExecutor(String name,
int handlerCount,
int numQueues,
int maxQueueLength,
Configuration conf,
Abortable abortable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(CallRunner callTask)
Add the request to the executor queue
|
protected RpcExecutor.Handler |
getHandler(String name,
double handlerFailureThreshhold,
BlockingQueue<CallRunner> q)
Override if providing alternate Handler implementation.
|
getQueueLength, getQueues, initializeQueuesgetActiveHandlerCount, getBalancer, resizeQueues, start, startHandlers, startHandlers, stoppublic FastPathBalancedQueueRpcExecutor(String name, int handlerCount, int numQueues, int maxQueueLength, Configuration conf, Abortable abortable)
public FastPathBalancedQueueRpcExecutor(String name, int handlerCount, int numCallQueues, Configuration conf, Abortable abortable, Class<? extends BlockingQueue> queueClass, Object... args)
protected RpcExecutor.Handler getHandler(String name, double handlerFailureThreshhold, BlockingQueue<CallRunner> q)
RpcExecutorgetHandler in class RpcExecutorpublic boolean dispatch(CallRunner callTask) throws InterruptedException
RpcExecutordispatch in class BalancedQueueRpcExecutorInterruptedException