Interface TaskPayloadTransformer<PayloadT>

  • Type Parameters:
    PayloadT - The type of the payload in the task
    All Known Implementing Classes:
    NoopPayloadTransformer

    public interface TaskPayloadTransformer<PayloadT>
    Marshaller and unmarshaller for the payload in the task
    Since:
    10.07.2017
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String fromObject​(PayloadT payload)
      Marshall the typed object with task parameters into string payload.
      PayloadT toObject​(java.lang.String payload)
      Unmarshall the string payload from the task into the object with task data
    • Method Detail

      • toObject

        @Nullable
        PayloadT toObject​(@Nullable
                          java.lang.String payload)
        Unmarshall the string payload from the task into the object with task data
        Parameters:
        payload - task payload
        Returns:
        Object with task data
      • fromObject

        @Nullable
        java.lang.String fromObject​(@Nullable
                                    PayloadT payload)
        Marshall the typed object with task parameters into string payload.
        Parameters:
        payload - task payload
        Returns:
        string with the task payload.