|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
R
- the type of result the tasks returnpublic interface TaskScope<R>
A TaskScope
defines a common unit of management for tasks sharing a common goal or
purpose. The scope gets notified when one of its tasks has completed or failed.
Method Summary | |
---|---|
void |
taskCompleted(R result)
Receive notification about a task that has been completed without exceptions. |
void |
taskFailed(Task<R> task,
Throwable reason)
Receive notification about a task that has failed. |
Method Detail |
---|
void taskCompleted(R result)
result
- the task's resultvoid taskFailed(Task<R> task, Throwable reason)
task
- the taskreason
- the Throwable that caused the failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |