com.danga.MemCached
Class SockIOPool.MaintThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.danga.MemCached.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
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
protected SockIOPool.MaintThread(SockIOPool pool)
           
 
Method Summary
 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, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, 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

pool

private SockIOPool pool

interval

private long interval

stopThread

private boolean stopThread

running

private boolean running
Constructor Detail

SockIOPool.MaintThread

protected SockIOPool.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


Copyright © 2005 - greg whalin