TaskGroup<ResultT,TaskT> 类

定义

Type representing a group of task entries, each entry holds a TaskItem<T> and associated dependency information.

public class TaskGroup<ResultT,TaskT extends TaskItem<ResultT>> extends DAGraph<TaskT, TaskGroupEntry<ResultT, TaskT>>

类型参数

ResultT

type of the result returned by the tasks in the group

TaskT

type of the tasks in the group that can return a value

继承
java.lang.Object
TaskGroup<ResultT,TaskT>

继承成员

构造函数

TaskGroup(String rootTaskItemId, TaskT rootTaskItem, TaskGroupTerminateOnErrorStrategy taskGroupTerminateOnErrorStrategy)

Creates TaskGroup.

方法

executeAsync()

Executes tasks in the group.

merge(TaskGroup<ResultT, TaskT> parentTaskGroup)

Merge this group with the given group containing root task depends on this group.

taskResult(String taskId)

Gets the result produced by a task in the group.

适用于