@InterfaceAudience.Private public class RpcHandler extends Thread
RpcExecutor
and its sub-classes.Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
(package private) Abortable |
abortable |
(package private) AtomicInteger |
activeHandlerCount |
(package private) AtomicInteger |
failedHandlerCount |
(package private) int |
handlerCount |
(package private) double |
handlerFailureThreshhold |
private static org.slf4j.Logger |
LOG |
(package private) BlockingQueue<CallRunner> |
q
Q to find CallRunners to run in.
|
private boolean |
running |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
RpcHandler(String name,
double handlerFailureThreshhold,
int handlerCount,
BlockingQueue<CallRunner> q,
AtomicInteger activeHandlerCount,
AtomicInteger failedHandlerCount,
Abortable abortable) |
Modifier and Type | Method and Description |
---|---|
protected CallRunner |
getCallRunner()
Returns A
CallRunner n |
void |
run() |
private void |
run(CallRunner cr) |
void |
stopRunning() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final org.slf4j.Logger LOG
final BlockingQueue<CallRunner> q
final int handlerCount
final double handlerFailureThreshhold
final AtomicInteger activeHandlerCount
final AtomicInteger failedHandlerCount
private boolean running
RpcHandler(String name, double handlerFailureThreshhold, int handlerCount, BlockingQueue<CallRunner> q, AtomicInteger activeHandlerCount, AtomicInteger failedHandlerCount, Abortable abortable)
protected CallRunner getCallRunner() throws InterruptedException
CallRunner
nInterruptedException
public void stopRunning()
private void run(CallRunner cr)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.