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.Thread
Class which extends thread and handles maintenance of the pool.- Version:
- 1.5
- Author:
- greg whalin
-
-
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
-
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
-
-
-
-
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:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-