Class SockIOPool.MaintThread

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    SockIOPool

    protected static class SockIOPool.MaintThread
    extends java.lang.Thread
    Class which extends thread and handles maintenance of the pool.
    Version:
    1.5
    Author:
    greg whalin
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

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

      Fields 
      Modifier and Type Field Description
      private long interval  
      private static org.apache.log4j.Logger log  
      private SockIOPool pool  
      private boolean running  
      private boolean stopThread  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MaintThread​(SockIOPool pool)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isRunning()  
      void run()
      Start the thread.
      void setInterval​(long interval)  
      void stopThread()
      sets stop variable and interupts any wait
      • 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
    • Field Detail

      • log

        private static org.apache.log4j.Logger log
      • interval

        private long interval
      • stopThread

        private boolean stopThread
      • running

        private boolean running
    • Constructor Detail

      • MaintThread

        protected MaintThread​(SockIOPool pool)
    • Method Detail

      • setInterval

        public void setInterval​(long interval)
      • isRunning

        public boolean isRunning()
      • stopThread

        public void stopThread()
        sets stop variable and interupts any wait
      • run

        public void run()
        Start the thread.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread