Package org.apache.bookkeeper.bookie
Class BookieThread
- java.lang.Object
-
- java.lang.Thread
-
- io.netty.util.concurrent.FastThreadLocalThread
-
- org.apache.bookkeeper.bookie.BookieThread
-
- All Implemented Interfaces:
java.lang.Runnable,java.lang.Thread.UncaughtExceptionHandler
- Direct Known Subclasses:
BookieCriticalThread
public class BookieThread extends io.netty.util.concurrent.FastThreadLocalThread implements java.lang.Thread.UncaughtExceptionHandlerWrapper that wraps bookie threads. Any common handing that we require for all bookie threads should be implemented here
-
-
Constructor Summary
Constructors Constructor Description BookieThread(java.lang.Runnable thread, java.lang.String name)BookieThread(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleException(java.lang.Thread t, java.lang.Throwable e)Handles uncaught exception occurred in thread.voiduncaughtException(java.lang.Thread t, java.lang.Throwable e)-
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
-
uncaughtException
public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)- Specified by:
uncaughtExceptionin interfacejava.lang.Thread.UncaughtExceptionHandler
-
handleException
protected void handleException(java.lang.Thread t, java.lang.Throwable e)Handles uncaught exception occurred in thread.
-
-