Class TaskProperties<V>
java.lang.Object
com.oracle.coherence.concurrent.executor.TaskProperties<V>
- Type Parameters:
V
- the value type of the property
- All Implemented Interfaces:
Task.Properties
A basic implementation of a
Task.Properties
.- Since:
- 21.06
- Author:
- bo, lh
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe map that stores the properties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V extends Serializable>
VGet the property of a given key.Returns the current properties.<V extends Serializable>
VPut a property with the given name and value.
-
Field Details
-
m_properties
-
-
Constructor Details
-
TaskProperties
public TaskProperties()Constructs aTaskProperties
.
-
-
Method Details
-
get
Description copied from interface:Task.Properties
Get the property of a given key.- Specified by:
get
in interfaceTask.Properties
- Type Parameters:
V
- the value type of the property- Parameters:
sKey
- the key of the property- Returns:
- the value of the property
-
put
Description copied from interface:Task.Properties
Put a property with the given name and value.- Specified by:
put
in interfaceTask.Properties
- 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
-
getProperties
-