Class TaskProperties
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.TaskProperties
-
- All Implemented Interfaces:
Task.Properties
public class TaskProperties extends Object implements Task.Properties
A basic implementation of aTask.Properties.- Since:
- 21.06
- Author:
- bo, lh
-
-
Field Summary
Fields Modifier and Type Field Description protected Mapm_propertiesThe map that stores the properties.
-
Constructor Summary
Constructors Constructor Description TaskProperties()Constructs aTaskProperties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V extends Serializable>
Vget(String sKey)Get the property of a given key.MapgetProperties()Returns the current properties.<V extends Serializable>
Vput(String sKey, V value)Put a property with the given name and value.
-
-
-
Field Detail
-
m_properties
protected Map m_properties
The map that stores the properties.
-
-
Constructor Detail
-
TaskProperties
public TaskProperties()
Constructs aTaskProperties.
-
-
Method Detail
-
get
public <V extends Serializable> V get(String sKey)
Description copied from interface:Task.PropertiesGet the property of a given key.- Specified by:
getin 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
public <V extends Serializable> V put(String sKey, V value)
Description copied from interface:Task.PropertiesPut a property with the given name and value.- Specified by:
putin 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
public Map getProperties()
Returns the current properties.- Returns:
- the current properties
-
-