TaskGroup.InvocationContext Class
- java.
lang. Object - com.
azure. resourcemanager. resources. fluentcore. dag. TaskGroup. InvocationContext
- com.
public static final class TaskGroup.InvocationContext
A mutable type that can be used to pass data around task items during the invocation of the TaskGroup.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final String |
KEY_SKIP_TASKS
Key of the Set of tasks to skip. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Object |
get(String key)
Get a value in the context with the given key. |
| boolean |
hasKey(String key)
Check existence of a key in the context. |
| void |
put(String key, Object value)
Put a key-value in the context. |
|
Task |
taskGroup()
Gets the Task |
|
Task |
terminateOnErrorStrategy()
Gets the termination strategy to use upon error during the current invocation of the Task |
|
Invocation |
withTerminateOnErrorStrategy(TaskGroupTerminateOnErrorStrategy strategy)
Sets the group termination strategy to use on error. |
Methods inherited from java.lang.Object
Field Details
KEY_SKIP_TASKS
public static final String KEY_SKIP_TASKS
Key of the Set of tasks to skip.
Method Details
get
public Object get(String key)
Get a value in the context with the given key.
Parameters:
Returns:
hasKey
public boolean hasKey(String key)
Check existence of a key in the context.
Parameters:
Returns:
put
public void put(String key, Object value)
Put a key-value in the context.
Parameters:
taskGroup
public TaskGroup taskGroup()
Gets the TaskGroup this invocation context associated with.
Returns:
terminateOnErrorStrategy
public TaskGroupTerminateOnErrorStrategy terminateOnErrorStrategy()
Gets the termination strategy to use upon error during the current invocation of the TaskGroup.
Returns:
withTerminateOnErrorStrategy
public TaskGroup.InvocationContext withTerminateOnErrorStrategy(TaskGroupTerminateOnErrorStrategy strategy)
Sets the group termination strategy to use on error.
Parameters:
Returns: