Package edu.jas.util
Class PoolThread
- java.lang.Object
-
- java.lang.Thread
-
- edu.jas.util.PoolThread
-
- All Implemented Interfaces:
java.lang.Runnable
class PoolThread extends java.lang.ThreadImplements one Thread of the pool.
-
-
Field Summary
Fields Modifier and Type Field Description private static booleandebug(package private) booleanisWorkingprivate static org.apache.logging.log4j.Loggerlogger(package private) ThreadPoolpool
-
Constructor Summary
Constructors Constructor Description PoolThread(ThreadPool pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Run the thread.-
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
-
-
-
-
Field Detail
-
pool
ThreadPool pool
-
logger
private static final org.apache.logging.log4j.Logger logger
-
debug
private static final boolean debug
-
isWorking
volatile boolean isWorking
-
-
Constructor Detail
-
PoolThread
public PoolThread(ThreadPool pool)
- Parameters:
pool- ThreadPool.
-
-