|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Task
A Task is an execution unit, that can be executed or undo.
Tasks can be used by a processor that will execute them and reverse execution in case of fault.
Method Summary | |
---|---|
void |
execute(Context context)
Launch the task with the given context. |
void |
undo(Context context)
Reverse the task in order to retrieve the environ state before execution of this task. |
Method Detail |
---|
void execute(Context context) throws Exception
context
- the execution context handling input and output information
Exception
- if an error occurs during Task processingvoid undo(Context context) throws Exception
context
- the execution context handling input and output information
Exception
- if an error occurs during Task unprocessing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |