Class SliceThread

  • All Implemented Interfaces:
    java.lang.Runnable

    public class SliceThread
    extends java.lang.Thread
    A thread to execute operation against each database slice.
    Author:
    Pinaki Poddar
    • 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
      SliceThread​(java.lang.String name, java.lang.Thread parent, java.lang.Runnable r)  
      SliceThread​(java.lang.Thread parent, java.lang.Runnable r)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Thread getParent()
      Gets the parent thread of this receiver.
      static java.util.concurrent.ExecutorService getPool()
      Create a cached pool of slice threads.
      • 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, run, 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

      • SliceThread

        public SliceThread​(java.lang.String name,
                           java.lang.Thread parent,
                           java.lang.Runnable r)
      • SliceThread

        public SliceThread​(java.lang.Thread parent,
                           java.lang.Runnable r)
    • Method Detail

      • getParent

        public java.lang.Thread getParent()
        Gets the parent thread of this receiver.
      • getPool

        public static java.util.concurrent.ExecutorService getPool()
        Create a cached pool of slice threads. The thread factory creates specialized threads for preferential locking treatment.