Class TaskGroup.InvocationContext
- java.lang.Object
-
- com.azure.resourcemanager.resources.fluentcore.dag.TaskGroup.InvocationContext
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_SKIP_TASKSKey of theSetof tasks to skip.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(String key)Get a value in the context with the given key.booleanhasKey(String key)Check existence of a key in the context.voidput(String key, Object value)Put a key-value in the context.TaskGrouptaskGroup()TaskGroupTerminateOnErrorStrategyterminateOnErrorStrategy()TaskGroup.InvocationContextwithTerminateOnErrorStrategy(TaskGroupTerminateOnErrorStrategy strategy)Sets the group termination strategy to use on error.
-
-
-
Field Detail
-
KEY_SKIP_TASKS
public static final String KEY_SKIP_TASKS
Key of theSetof tasks to skip.- See Also:
- Constant Field Values
-
-
Method Detail
-
taskGroup
public TaskGroup 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
public TaskGroupTerminateOnErrorStrategy terminateOnErrorStrategy()
- Returns:
- the termination strategy to use upon error during the current invocation of the TaskGroup.
-
put
public void put(String key, Object value)
Put a key-value in the context.- Parameters:
key- the keyvalue- the value
-
get
public Object get(String key)
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
public boolean hasKey(String key)
Check existence of a key in the context.- Parameters:
key- the key- Returns:
- true if the key exists, false otherwise.
-
-