|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biz.chitec.quarterback.util.StoppableThread
Thread with a special stopping method. stopGracefully() stops the thread somehow gracefully. How this is done is up to the implementation.
Nested Class Summary | |
protected class |
StoppableThread.StopException
Exception for gracefully stopping the run() method. |
Field Summary | |
protected boolean |
shouldbestopped
The variable keeping the information that this thread should be stopped. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
StoppableThread()
Parameterless constructor. |
|
StoppableThread(java.lang.String name)
Constructor with thread name |
Method Summary | |
boolean |
shouldBeStopped()
Element method for the should-be-stopped variable. |
void |
stopGracefully()
Stops the operation of the run() method somehow gracefully. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean shouldbestopped
Constructor Detail |
public StoppableThread()
public StoppableThread(java.lang.String name)
Method Detail |
public boolean shouldBeStopped()
public void stopGracefully()
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |