Class ThreadHandler

java.lang.Object
org.cdlib.mrt.core.ThreadHandler

public class ThreadHandler extends Object
Run fixity
Author:
dloy
  • Field Details

    • NAME

      protected static final String NAME
      See Also:
    • MESSAGE

      protected static final String MESSAGE
      See Also:
    • debug

      protected static boolean debug
    • STATUS

      protected static final boolean STATUS
      See Also:
    • threads

      protected Thread[] threads
    • threadCnt

      protected int threadCnt
    • pollTime

      protected long pollTime
    • saveException

      protected Exception saveException
    • shutdown

      protected boolean shutdown
    • logger

      protected LoggerInf logger
  • Constructor Details

  • Method Details

    • getThreadHandler

      public static ThreadHandler getThreadHandler(long pollTime, int threadCnt, LoggerInf logger) throws TException
      Throws:
      TException
    • shutdown

      public void shutdown() throws TException
      Throws:
      TException
    • runThread

      public ProcessStatus runThread(Runnable processItem)
    • completeThreads

      protected void completeThreads()
    • getActiveCnt

      public int getActiveCnt()
    • initialThreads

      protected void initialThreads()
    • isShutdown

      public boolean isShutdown()
    • setShutdown

      public void setShutdown(boolean shutdown)
    • isDebug

      public static boolean isDebug()
    • setDebug

      public static void setDebug(boolean debug)
    • getThreadCnt

      public int getThreadCnt()