Class TaskGroup.InvocationContext
java.lang.Object
com.azure.resourcemanager.resources.fluentcore.dag.TaskGroup.InvocationContext
- Enclosing class:
TaskGroup
A mutable type that can be used to pass data around task items during the invocation
of the TaskGroup.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet a value in the context with the given key.booleanCheck existence of a key in the context.voidPut a key-value in the context.Gets the TaskGroup this invocation context associated with.Gets the termination strategy to use upon error during the current invocation of the TaskGroup.Sets the group termination strategy to use on error.
-
Field Details
-
KEY_SKIP_TASKS
Key of theSetof tasks to skip.- See Also:
-
-
Method Details
-
taskGroup
Gets the TaskGroup this invocation context associated with.- Returns:
- the TaskGroup this invocation context associated with.
-
withTerminateOnErrorStrategy
public TaskGroup.InvocationContext withTerminateOnErrorStrategy(TaskGroupTerminateOnErrorStrategy strategy) Sets the group termination strategy to use on error.- Parameters:
strategy- the strategy- Returns:
- the context
-
terminateOnErrorStrategy
Gets the termination strategy to use upon error during the current invocation of the TaskGroup.- Returns:
- the termination strategy to use upon error during the current invocation of the TaskGroup.
-
put
Put a key-value in the context.- Parameters:
key- the keyvalue- the value
-
get
Get a value in the context with the given key.- Parameters:
key- the key- Returns:
- value with the given key if exists, null otherwise.
-
hasKey
Check existence of a key in the context.- Parameters:
key- the key- Returns:
- true if the key exists, false otherwise.
-