Package de.mhus.lib.core
Class MThreadPool.ThreadContainer
- java.lang.Object
-
- java.lang.Thread
-
- de.mhus.lib.core.MThreadPool.ThreadContainer
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- MThreadPool
protected static class MThreadPool.ThreadContainer extends Thread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ThreadContainer(ThreadGroup group, String pName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSleepTime()booleanisRunning()booleanisWorking()booleannewWork(MThreadPool _task)voidrun()booleanstopRunning()-
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
-
-
-
-
Constructor Detail
-
ThreadContainer
public ThreadContainer(ThreadGroup group, String pName)
-
-
Method Detail
-
newWork
public boolean newWork(MThreadPool _task)
-
isWorking
public boolean isWorking()
-
isRunning
public boolean isRunning()
-
stopRunning
public boolean stopRunning()
-
getSleepTime
public long getSleepTime()
-
-