Interface TaskItem
- All Known Implementing Classes:
IndexableTaskItem
public interface TaskItem
-
Method Summary
Modifier and TypeMethodDescriptionvoidThe method that gets called before invoking all the tasks in theTaskGroupthis task belongs to.invokeAfterPostRunAsync(boolean isGroupFaulted) The method that gets called after invocation of "post run" task items depends on this TaskItem.invokeAsync(TaskGroup.InvocationContext context) The method that gets called to perform the unit of work asynchronously.booleanisHot()result()
-
Method Details
-
result
Indexable result()- Returns:
- the result of the task invocation
-
beforeGroupInvoke
void beforeGroupInvoke()The method that gets called before invoking all the tasks in theTaskGroupthis task belongs to. -
isHot
boolean isHot()- Returns:
- true if the publisher returned by invokeAsync(cxt) is a hot observable, false if its a cold publisher.
-
invokeAsync
The method that gets called to perform the unit of work asynchronously. -
invokeAfterPostRunAsync
The method that gets called after invocation of "post run" task items depends on this TaskItem.This method will be invoked only if this TaskItem had "post run" dependents.
- Parameters:
isGroupFaulted- true if one or more tasks in the group this TaskItem belongs to are in faulted state.- Returns:
- a
Fluxrepresenting any asynchronous work initiated
-