|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Task
Interface representing a task.
Field Summary | |
---|---|
static Integer |
EXECUTE_AGAIN
An integer that can be used with some schedulers to specify that the task should be executed again. |
static String |
ITF_NAME
The commonly used nam to refer to this interface. |
static Integer |
STOP_EXECUTING
An integer that can be used with some schedulers to specify that the task should not be executed again. |
Method Summary | |
---|---|
Object |
execute(Object hints)
The method that is executed. |
void |
interrupted()
Call back method used by scheduler to notify a task that has been interrupted. |
void |
registered(Object controlItf)
Call back method to notify that the task as been correctly registered in the task manager. |
void |
unregistered()
Call back method to notify that the task has been unregistered from the activity manager. |
Field Detail |
---|
static final String ITF_NAME
static final Integer EXECUTE_AGAIN
static final Integer STOP_EXECUTING
Method Detail |
---|
Object execute(Object hints) throws InterruptedException
hints
- execution paramters.
InterruptedException
- if this task is interrupted.void interrupted()
void registered(Object controlItf)
controlItf
- An interface that can be used to control the execution of
the task. The runtime type of this interface depends on the
registration hints. Can be null
.void unregistered()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |