public class ZooKeeperCriticalThread extends ZooKeeperThread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ZooKeeperCriticalThread(String threadName,
ZooKeeperServerListener listener) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleException(String threadName,
Throwable e)
This will be used by the uncaught exception handler and make the system
exit.
|
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ZooKeeperCriticalThread(String threadName, ZooKeeperServerListener listener)
protected void handleException(String threadName, Throwable e)
handleException
in class ZooKeeperThread
threadName
- - thread namee
- - exception objectCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.