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:
java.lang.Runnable
,java.lang.Thread.UncaughtExceptionHandler
public class BookieCriticalThread extends BookieThread
Thread is marked as critical and will exit, when there is an uncaught exception occurred in thread.
-
-
Constructor Summary
Constructors Constructor Description BookieCriticalThread(java.lang.Runnable thread, java.lang.String name)
BookieCriticalThread(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleException(java.lang.Thread t, java.lang.Throwable e)
Handles uncaught exception occurred in thread.-
Methods inherited from class org.apache.bookkeeper.bookie.BookieThread
uncaughtException
-
Methods inherited from class io.netty.util.concurrent.FastThreadLocalThread
permitBlockingCalls, setThreadLocalMap, threadLocalMap, willCleanupFastThreadLocals, willCleanupFastThreadLocals
-
Methods inherited from class java.lang.Thread
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
-
-
-
-
Method Detail
-
handleException
protected void handleException(java.lang.Thread t, java.lang.Throwable e)
Description copied from class:BookieThread
Handles uncaught exception occurred in thread.- Overrides:
handleException
in classBookieThread
-
-