|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TaskObserver
The task observer interface provides the means by which the task master can communicate the success or failure of a task invocation back to the originator of a task.
| Method Summary | |
|---|---|
void |
taskCompleted(String name,
Object result)
If the task successfully runs to completion and returns a result, this member function will be called on the supplied observer. |
void |
taskFailed(String name,
Throwable exception)
If the task fails to run to completion and instead throws an exception, this member function will be called on the supplied observer. |
| Method Detail |
|---|
void taskCompleted(String name,
Object result)
name - The name under which the task was originally invoked.result - The result returned by the task's
invoke() method.
void taskFailed(String name,
Throwable exception)
name - The name under which the task was originally invoked.exception - The exception thrown by the task during the call
to invoke().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||