TaskGroup<ResultT,TaskT> Class
- java.
lang. Object - DAGraph<DataT,NodeT,NodeT>
- com.
microsoft. azure. management. resources. fluentcore. dag. TaskGroup<ResultT,TaskT>
- com.
Type Parameters
- 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
public class TaskGroup<ResultT,TaskT extends TaskItem> extends DAGraph<TaskT, TaskGroupEntry<ResultT, TaskT>>
Type representing a group of task entries, each entry holds a TaskItem and associated dependency information.
Constructor Summary
Constructor | Description |
---|---|
TaskGroup(String rootTaskItemId, TaskT rootTaskItem, TaskGroupTerminateOnErrorStrategy taskGroupTerminateOnErrorStrategy) |
Creates TaskGroup. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Observable<ResultT> |
executeAsync()
Executes tasks in the group. |
void |
merge(TaskGroup<ResultT, TaskT> parentTaskGroup)
Merge this group with the given group containing root task depends on this group. |
ResultT |
taskResult(String taskId)
Gets the result produced by a task in the group. |
Inherited Members
Constructor Details
TaskGroup
public TaskGroup(String rootTaskItemId, TaskT rootTaskItem, TaskGroupTerminateOnErrorStrategy taskGroupTerminateOnErrorStrategy)
Creates TaskGroup.
Parameters:
Method Details
executeAsync
public Observable
Executes tasks in the group.
Returns:
merge
public void merge(TaskGroup
Merge this group with the given group containing root task depends on this group.
Parameters:
taskResult
public ResultT taskResult(String taskId)
Gets the result produced by a task in the group.
Parameters:
Returns:
Applies to
Azure SDK for Java