Package com.danga.MemCached
Class SockIOPool.MaintThread
java.lang.Object
java.lang.Thread
com.danga.MemCached.SockIOPool.MaintThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
- SockIOPool
Class which extends thread and handles maintenance of the pool.
- Version:
- 1.5
- Author:
- greg whalin <greg@meetup.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate static org.apache.log4j.Loggerprivate SockIOPoolprivate booleanprivate booleanFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidrun()Start the thread.voidsetInterval(long interval) voidsets stop variable and interupts any waitMethods 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 Details
-
log
private static org.apache.log4j.Logger log -
pool
-
interval
private long interval -
stopThread
private boolean stopThread -
running
private boolean running
-
-
Constructor Details
-
MaintThread
-
-
Method Details