|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--DE.purple_sunshine.bigbro.SuspendableThread
A thread that can be suspended and finished...
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SuspendableThread()
|
|
| Method Summary | |
void |
finish()
This should make the Thread leave its loop and thus finish. ( |
boolean |
isFinished()
Leaving the run method, the variable finished should be set
to true. |
void |
resume_()
suspended is reset to false, so the Thread should leave the sleep-loop and start working again. |
void |
suspend_()
If the subclass is correctly implemented using the suspended
boolean variable, the Thread will finish all its tasks and then remain
in a sleep-mode until its resumed. ( |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SuspendableThread()
| Method Detail |
public void suspend_()
suspended
boolean variable, the Thread will finish all its tasks and then remain
in a sleep-mode until its resumed. (suspended = true)public void resume_()
public void finish()
finishing = true)public boolean isFinished()
finished should be set
to true. If that was done, the Thread can be queried on
whether or not its finished, yet, with this method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||