Interface PollForActivityTaskResponse.Builder

    • Method Detail

      • taskToken

        PollForActivityTaskResponse.Builder taskToken​(String taskToken)

        The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.

        Parameters:
        taskToken - The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • activityId

        PollForActivityTaskResponse.Builder activityId​(String activityId)

        The unique ID of the task.

        Parameters:
        activityId - The unique ID of the task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startedEventId

        PollForActivityTaskResponse.Builder startedEventId​(Long startedEventId)

        The ID of the ActivityTaskStarted event recorded in the history.

        Parameters:
        startedEventId - The ID of the ActivityTaskStarted event recorded in the history.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • workflowExecution

        PollForActivityTaskResponse.Builder workflowExecution​(WorkflowExecution workflowExecution)

        The workflow execution that started this activity task.

        Parameters:
        workflowExecution - The workflow execution that started this activity task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • activityType

        PollForActivityTaskResponse.Builder activityType​(ActivityType activityType)

        The type of this activity task.

        Parameters:
        activityType - The type of this activity task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • input

        PollForActivityTaskResponse.Builder input​(String input)

        The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

        Parameters:
        input - The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.