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.
|
TaskGroup |
taskGroup() |
TaskGroupTerminateOnErrorStrategy |
terminateOnErrorStrategy() |
TaskGroup.InvocationContext |
withTerminateOnErrorStrategy(TaskGroupTerminateOnErrorStrategy strategy)
Sets the group termination strategy to use on error.
|
public TaskGroup taskGroup()
public TaskGroup.InvocationContext withTerminateOnErrorStrategy(TaskGroupTerminateOnErrorStrategy strategy)
strategy
- the strategypublic TaskGroupTerminateOnErrorStrategy terminateOnErrorStrategy()
public void put(String key, Object value)
key
- the keyvalue
- the valuepublic Object get(String key)
key
- the keypublic boolean hasKey(String key)
key
- the keyCopyright © 2019. All rights reserved.