|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface is implemented by objects that can be executed
by a TaskServer.
A Task object implements two methods:
public void run(): from
RunnableTaskServer
when the task is executed.public void cancel(): TaskServer
if the TaskServer is stopped before the
Task is executed.TaskServer shall call
either run() or cancel().
Whether the task is executed synchronously in the current
thread (when calling TaskServer.submitTask() or in a new
thread dedicated to the task, or in a daemon thread, depends on the
implementation of the TaskServer through which the task
is executed.
The implementation of Task must not make any
assumption on the implementation of the TaskServer through
which it will be executed.
TaskServer| Method Summary | |
void |
cancel()
Cancel the submitted task. |
| Methods inherited from interface java.lang.Runnable |
run |
| Method Detail |
public void cancel()
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||