Class TaskGroup.InvocationContext
java.lang.Object
com.microsoft.azure.management.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.boolean
Check existence of a key in the context.void
Put a key-value in the context.Sets the group termination strategy to use on error.
-
Field Details
-
KEY_CONTEXT
Key of context for request.- See Also:
-
-
Method Details
-
taskGroup
- 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
- 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.
-