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

public class TaskProperties<V> extends Object implements Task.Properties
A basic implementation of a Task.Properties.
Since:
21.06
Author:
bo, lh
  • Field Details

    • m_properties

      protected Map<String,Object> m_properties
      The map that stores the properties.
  • Constructor Details

    • TaskProperties

      public TaskProperties()
      Constructs a TaskProperties.
  • Method Details

    • get

      public <V extends Serializable> V get(String sKey)
      Description copied from interface: Task.Properties
      Get the property of a given key.
      Specified by:
      get in interface Task.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.Properties
      Put a property with the given name and value.
      Specified by:
      put in interface Task.Properties
      Type Parameters:
      V - the value type of the property
      Parameters:
      sKey - the key of the property
      value - 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