Package org.apache.zookeeper.server
Class ZooKeeperThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.zookeeper.server.ZooKeeperThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
LearnerHandler
,NIOServerCnxnFactory.SelectorThread
,QuorumCnxManager.Listener
,QuorumPeer
,ZooKeeperCriticalThread
public class ZooKeeperThread extends java.lang.Thread
This is the main class for catching all the uncaught exceptions thrown by the threads.
-
-
Constructor Summary
Constructors Constructor Description ZooKeeperThread(java.lang.String threadName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleException(java.lang.String thName, java.lang.Throwable e)
This will be used by the uncaught exception handler and just log a warning message and return.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-