public interface WorkerThread
Tasks in a thread that is not the Event Dispatch Thread. AbstractWorkerThread.| Modifier and Type | Method and Description |
|---|---|
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). |
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)Copyright © 2002-2011. All Rights Reserved.