|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.danga.MemCached.SockIOPool.MaintThread
protected static class SockIOPool.MaintThread
Class which extends thread and handles maintenance of the pool.
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 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 |
---|
private static Logger log
private SockIOPool pool
private long interval
private boolean stopThread
private boolean running
Constructor Detail |
---|
protected SockIOPool.MaintThread(SockIOPool pool)
Method Detail |
---|
public void setInterval(long interval)
public boolean isRunning()
public void stopThread()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |