Interface TaskItem
-
- All Known Implementing Classes:
IndexableTaskItem
public interface TaskItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbeforeGroupInvoke()The method that gets called before invoking all the tasks in theTaskGroupthis task belongs to.Mono<Void>invokeAfterPostRunAsync(boolean isGroupFaulted)The method that gets called after invocation of "post run" task items depends on this TaskItem.Mono<Indexable>invokeAsync(TaskGroup.InvocationContext context)The method that gets called to perform the unit of work asynchronously.booleanisHot()Indexableresult()
-
-
-
Method Detail
-
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
Mono<Indexable> invokeAsync(TaskGroup.InvocationContext context)
The method that gets called to perform the unit of work asynchronously.
-
invokeAfterPostRunAsync
Mono<Void> invokeAfterPostRunAsync(boolean isGroupFaulted)
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
-
-