Interface Task.Properties

  • Enclosing interface:
    Task<T>

    public static interface Task.Properties
    Define an interface to allow states sharing between the task executors.
    • Method Detail

      • get

        <V extends Serializable> V get​(String sKey)
        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

        <V extends Serializable> V put​(String sKey,
                                       V value)
        Put a property with the given name and value.
        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