Package com.danga.MemCached
Class SockIOPool.MaintThread
- java.lang.Object
-
- java.lang.Thread
-
- com.danga.MemCached.SockIOPool.MaintThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- SockIOPool
protected static class SockIOPool.MaintThread extends java.lang.ThreadClass which extends thread and handles maintenance of the pool.- Version:
- 1.5
- Author:
- greg whalin
-
-
Field Summary
Fields Modifier and Type Field Description private longintervalprivate static org.apache.log4j.Loggerlogprivate SockIOPoolpoolprivate booleanrunningprivate booleanstopThread
-
Constructor Summary
Constructors Modifier Constructor Description protectedMaintThread(SockIOPool pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRunning()voidrun()Start the thread.voidsetInterval(long interval)voidstopThread()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
-
-
-
-
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
-
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:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-