|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
net.sourceforge.rssowl.controller.thread.ExtendedThread
This simple extension of the Thread class uses a boolean flag to indicate wether it was stopped or not. This avoids the need of using the stop() method
| Field Summary | |
protected boolean |
stopped
Flag indicating status of the Thread |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ExtendedThread()
Instantiate a new Extended Thread |
|
ExtendedThread(String name)
Instantiate a new Extended Thread |
|
| Method Summary | |
boolean |
isStopped()
Check if this Thread was stopped |
void |
startThread()
Starts this Thread |
void |
stopThread()
Stops this Thread by setting the stopped-flag to TRUE |
| 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 stopped
| Constructor Detail |
public ExtendedThread()
Threadpublic ExtendedThread(String name)
name - the name of the new thread.Thread| Method Detail |
public boolean isStopped()
public void startThread()
public void stopThread()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||