TaskT - the task type that can return a valuepublic final class TaskGroupEntry<TaskT extends TaskItem> extends DAGNode<TaskT,TaskGroupEntry<TaskT>>
TaskGroup that holds one TaskItem and associated
information which includes:
1. references to other TaskGroupEntry dependencies
2. references to the other TaskGroupEntry dependents| Modifier and Type | Method and Description |
|---|---|
boolean |
hasFaultedDescentDependencyTasks() |
void |
initialize()
Initialize the node so that traversal can be performed on the parent DAG.
|
Mono<Indexable> |
invokeTaskAsync(boolean ignoreCachedResult,
TaskGroup.InvocationContext context)
Invokes the task this entry holds.
|
protected void |
onFaultedResolution(String dependencyKey,
Throwable throwable)
Reports a dependency of this node has been faulted.
|
TaskGroupEntry<TaskT> |
proxy() |
void |
setProxy(TaskGroupEntry<TaskT> proxy)
Set the proxy entry for this entry.
|
Indexable |
taskResult() |
addDependency, addDependent, dependencyKeys, hasDependencies, isPreparer, lock, onSuccessfulResolution, removeDependency, setPrepareraddChild, children, data, hasChildren, key, owner, removeChild, setOwnerpublic void initialize()
DAGNodeinitialize in class DAGNode<TaskT extends TaskItem,TaskGroupEntry<TaskT extends TaskItem>>public void setProxy(TaskGroupEntry<TaskT> proxy)
proxy - the proxy entrypublic TaskGroupEntry<TaskT> proxy()
public Indexable taskResult()
public boolean hasFaultedDescentDependencyTasks()
public Mono<Indexable> invokeTaskAsync(boolean ignoreCachedResult, TaskGroup.InvocationContext context)
ErroredDependencyTaskException will be returned.ignoreCachedResult - if the task is already invoked and has result cached then a value false for this
parameter indicates the cached result can be returned without invoking task again,
if true then cached result will be ignored and task will be invokedcontext - the context object shared across all the entries in the group that this entry belongs to,
this will be passed to TaskItem.invokeAsync(TaskGroup.InvocationContext)
method of the task itemIndexable.protected void onFaultedResolution(String dependencyKey, Throwable throwable)
DAGNodeonFaultedResolution in class DAGNode<TaskT extends TaskItem,TaskGroupEntry<TaskT extends TaskItem>>dependencyKey - the id of the dependency nodethrowable - the reason for unsuccessful resolutionCopyright © 2021 Microsoft Corporation. All rights reserved.