Interface Task.Properties
public static interface Task.Properties
Define an interface to allow states sharing between the task executors.
-
Method Summary
Modifier and TypeMethodDescription<V extends Serializable>
VGet the property of a given key.<V extends Serializable>
VPut a property with the given name and value.
-
Method Details
-
get
Get the property of a given key.- Type Parameters:
V
- the value type of the property- Parameters:
sKey
- the key of the property- Returns:
- the value of the property
-
put
Put a property with the given name and value.- Type Parameters:
V
- the value type of the property- Parameters:
sKey
- the key of the propertyvalue
- the value of the property- Returns:
- the previous value of the property or null if it's a new property
-