public class ThreadQueue extends CloseableThread
closing
Constructor and Description |
---|
ThreadQueue(java.lang.String threadName)
Constructs a ThreadQueue.
|
Modifier and Type | Method and Description |
---|---|
void |
addThread(java.lang.Thread t)
Add a thread to this ThreadQueue.
|
void |
run()
Monitor the thread queue.
|
void |
stopThreads()
Stop the currently running thread and any threads
queued to run.
|
close, isClosed, isClosing, setClosed, setClosing, waitUntilClosed
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
public ThreadQueue(java.lang.String threadName)
public void run()
This method is called when the thread is started. It should not be called directly.
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void addThread(java.lang.Thread t)
t
- The Thread to add.public void stopThreads()