Class RegistrableThread

    • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void internalRun()  
      static void registerThread​(OperationInfo operationInfo)
      Registers current Thread with a given OperationInfo.
      void run()  
      static void unregisterThread()
      Unregisters current Thread.
      RegistrableThread withInitialInfo​(OperationInfo initialInfo)  
      • Methods 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

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

      • RegistrableThread

        public RegistrableThread()
      • RegistrableThread

        public RegistrableThread​(java.lang.Runnable target)
      • RegistrableThread

        public RegistrableThread​(java.lang.ThreadGroup group,
                                 java.lang.Runnable target)
      • RegistrableThread

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

        public RegistrableThread​(java.lang.ThreadGroup group,
                                 java.lang.String name)
      • RegistrableThread

        public RegistrableThread​(java.lang.Runnable target,
                                 java.lang.String name)
      • RegistrableThread

        public RegistrableThread​(java.lang.ThreadGroup group,
                                 java.lang.Runnable target,
                                 java.lang.String name)
      • RegistrableThread

        public RegistrableThread​(java.lang.ThreadGroup group,
                                 java.lang.Runnable target,
                                 java.lang.String name,
                                 long stackSize)
    • Method Detail

      • registerThread

        public static void registerThread​(@Nonnull
                                          OperationInfo operationInfo)
        Registers current Thread with a given OperationInfo.
        Parameters:
        operationInfo - info to register for current thread
        Throws:
        java.lang.NullPointerException - if operationInfo is null
        java.lang.IllegalStateException - if thread is registered
      • unregisterThread

        public static void unregisterThread()
        Unregisters current Thread.
        Throws:
        java.lang.IllegalStateException - if thread is not registered
      • run

        public final void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • internalRun

        protected void internalRun()