Class SockIOPool.MaintThread

java.lang.Object
java.lang.Thread
com.danga.MemCached.SockIOPool.MaintThread
All Implemented Interfaces:
Runnable
Enclosing class:
SockIOPool

protected static class SockIOPool.MaintThread extends Thread
Class which extends thread and handles maintenance of the pool.
Version:
1.5
Author:
greg whalin <greg@meetup.com>
  • Field Details

    • log

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

      private SockIOPool pool
    • interval

      private long interval
    • stopThread

      private boolean stopThread
    • running

      private boolean running
  • Constructor Details

    • MaintThread

      protected MaintThread(SockIOPool pool)
  • Method Details

    • 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 Runnable
      Overrides:
      run in class Thread