public interface TaskItem
Modifier and Type | Method and Description |
---|---|
void |
beforeGroupInvoke()
The method that gets called before invoking all the tasks in the
TaskGroup
this task belongs to. |
rx.Completable |
invokeAfterPostRunAsync(boolean isGroupFaulted)
The method that gets called after invocation of "post run" task items depends on
this TaskItem.
|
rx.Observable<Indexable> |
invokeAsync(TaskGroup.InvocationContext context)
The method that gets called to perform the unit of work asynchronously.
|
boolean |
isHot() |
Indexable |
result() |
Indexable result()
void beforeGroupInvoke()
TaskGroup
this task belongs to.boolean isHot()
rx.Observable<Indexable> invokeAsync(TaskGroup.InvocationContext context)
context
- the context shared across the the all task items in the group
this task item belongs to.Indexable
rx.Completable invokeAfterPostRunAsync(boolean isGroupFaulted)
This method will be invoked only if this TaskItem had "post run" dependents.
isGroupFaulted
- true if one or more tasks in the group this TaskItem belongs
to are in faulted state.Copyright © 2019. All rights reserved.