Class PoolableThread

  • All Implemented Interfaces:
    java.lang.Runnable

    public class PoolableThread
    extends RegistrableThread
    A Thread implementation which gives itself back to the ThreadPool when it finishes to execute its task.
    • 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 Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(java.lang.Runnable rbl)  
      java.lang.Runnable getRunnable()  
      protected void handleError​(java.lang.Throwable e)  
      void internalRun()  
      void invalidate()  
      boolean isBorrowed()  
      void start()  
      • 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, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

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

      • isBorrowed

        public boolean isBorrowed()
      • handleError

        protected void handleError​(java.lang.Throwable e)
      • execute

        public void execute​(java.lang.Runnable rbl)
      • invalidate

        public void invalidate()
      • getRunnable

        public java.lang.Runnable getRunnable()
      • start

        public void start()
        Overrides:
        start in class java.lang.Thread