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:
Runnable,Thread.UncaughtExceptionHandler
- Direct Known Subclasses:
BookieCriticalThread
public class BookieThread
extends io.netty.util.concurrent.FastThreadLocalThread
implements Thread.UncaughtExceptionHandler
Wrapper that wraps bookie threads.
Any common handing that we require for all bookie threads
should be implemented here
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleException(Thread t, Throwable e) Handles uncaught exception occurred in thread.voiduncaughtException(Thread t, Throwable e) Methods 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
-
BookieThread
-
BookieThread
-
-
Method Details
-
uncaughtException
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-
handleException
Handles uncaught exception occurred in thread.
-