Package org.apache.bookkeeper.bookie
Class BookieCriticalThread
java.lang.Object
java.lang.Thread
io.netty.util.concurrent.FastThreadLocalThread
org.apache.bookkeeper.bookie.BookieThread
org.apache.bookkeeper.bookie.BookieCriticalThread
- All Implemented Interfaces:
Runnable,Thread.UncaughtExceptionHandler
Thread is marked as critical and will exit, when there is an uncaught
exception occurred in thread.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionBookieCriticalThread(Runnable thread, String name) BookieCriticalThread(String name) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleException(Thread t, Throwable e) Handles uncaught exception occurred in thread.Methods inherited from class org.apache.bookkeeper.bookie.BookieThread
uncaughtExceptionMethods inherited from class io.netty.util.concurrent.FastThreadLocalThread
permitBlockingCalls, setThreadLocalMap, threadLocalMap, willCleanupFastThreadLocals, willCleanupFastThreadLocalsMethods 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
-
Constructor Details
-
BookieCriticalThread
-
BookieCriticalThread
-
-
Method Details
-
handleException
Description copied from class:BookieThreadHandles uncaught exception occurred in thread.- Overrides:
handleExceptionin classBookieThread
-