Class 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.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

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • 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 void handleException​(java.lang.Thread t, java.lang.Throwable e)
      Handles uncaught exception occurred in thread.
      void uncaughtException​(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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BookieThread

        public BookieThread​(java.lang.String name)
      • BookieThread

        public BookieThread​(java.lang.Runnable thread,
                            java.lang.String name)
    • Method Detail

      • uncaughtException

        public void uncaughtException​(java.lang.Thread t,
                                      java.lang.Throwable e)
        Specified by:
        uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
      • handleException

        protected void handleException​(java.lang.Thread t,
                                       java.lang.Throwable e)
        Handles uncaught exception occurred in thread.