|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A control interface to manage tasks.
Method Summary | |
Task[] |
getTasks()
Returns the tasks that have been registered. |
void |
interruptTask(Task task,
TaskStoppedListener listener)
Interrupts the specified task. |
Object |
registerTask(Task task,
Map hints)
Registers a new task. |
void |
unregisterTask(Task task)
Unregisters the specified task. |
Method Detail |
public Object registerTask(Task task, Map hints) throws IllegalTaskException
task
- the task to be registered.hints
- additionnal parameters.
null
if no control is available on the task).
IllegalTaskException
- if an error occurs.public void unregisterTask(Task task) throws IllegalTaskException
task
- the task to be unregistered.
IllegalTaskException
- if an error occurs.public void interruptTask(Task task, TaskStoppedListener listener) throws IllegalTaskException
listener
is notified when the task is interrupted. The
interrupted task should then be unregistered from the activity manager.
task
- the task to interrupt.listener
- the listener that is notified when the task is interrupted.
Can be null
.
IllegalTaskException
- if the given task is unknown.public Task[] getTasks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |