|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkerThread
Implementations of this interface run
Tasks in a thread that is not the Event Dispatch Thread.
Implementations should extend AbstractWorkerThread.
| Method Summary | |
|---|---|
boolean |
isAlive()
Returns whether this WorkerThread is alive. |
boolean |
isWorkerThread()
Returns whether the current thread is a thread used by the implementation of this WorkerThread to run Tasks. |
void |
postTask(Task task)
Posts a Task to be run by this WorkerThread in a thread that is not the Event Dispatch Thread. |
void |
runTask(Task task)
Runs the given Task. |
void |
start()
Starts this WorkerThread, responsible for running Tasks (not in the
Event Dispatch Thread). |
| Method Detail |
|---|
void start()
Tasks (not in the
Event Dispatch Thread).
Applets can stop threads used by implementations of this WorkerThread in any moment,
and this method also can be used to restart this WorkerThread
if it results that it is not alive anymore.
isAlive()boolean isAlive()
start()boolean isWorkerThread()
Tasks.
void postTask(Task task)
isAlive() to guarantee
that the posted Task will be executed by this WorkerThread.
runTask(foxtrot.Task)void runTask(Task task)
postTask(foxtrot.Task)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||