|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskManager
A control interface to manage tasks.
Field Summary | |
---|---|
static String |
ITF_NAME
Default name of this interface. |
Method Summary | |
---|---|
Task[] |
getTasks()
Returns the tasks that have been registered. |
void |
interruptTask(Task task,
TaskStoppedListener listener)
Interrupts the specified task. |
void |
registerTask(Task task,
Map hints)
Registers a new task. |
void |
unregisterTask(Task task)
Unregisters the specified task. |
Field Detail |
---|
static final String ITF_NAME
Method Detail |
---|
void registerTask(Task task, Map hints) throws IllegalTaskException
task
- the task to be registered.hints
- additionnal parameters.
IllegalTaskException
- if an error occurs.void unregisterTask(Task task) throws IllegalTaskException, InterruptedException
task
- the task to be unregistered.
IllegalTaskException
- if an error occurs.
InterruptedException
- if the method is interruptedvoid interruptTask(Task task, TaskStoppedListener listener) throws IllegalTaskException
listener
is notified when the task is stopped. 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.Task[] getTasks()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |