Interface PollForDecisionTaskResponse.Builder

    • Method Detail

      • taskToken

        PollForDecisionTaskResponse.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.
      • startedEventId

        PollForDecisionTaskResponse.Builder startedEventId​(Long startedEventId)

        The ID of the DecisionTaskStarted event recorded in the history.

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

        PollForDecisionTaskResponse.Builder workflowExecution​(WorkflowExecution workflowExecution)

        The workflow execution for which this decision task was created.

        Parameters:
        workflowExecution - The workflow execution for which this decision task was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • workflowType

        PollForDecisionTaskResponse.Builder workflowType​(WorkflowType workflowType)

        The type of the workflow execution for which this decision task was created.

        Parameters:
        workflowType - The type of the workflow execution for which this decision task was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • events

        PollForDecisionTaskResponse.Builder events​(Collection<HistoryEvent> events)

        A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

        Parameters:
        events - A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • events

        PollForDecisionTaskResponse.Builder events​(HistoryEvent... events)

        A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

        Parameters:
        events - A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextPageToken

        PollForDecisionTaskResponse.Builder nextPageToken​(String nextPageToken)

        If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken . Keep all other arguments unchanged.

        The configured maximumPageSize determines how many results can be returned in a single call.

        Parameters:
        nextPageToken - If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

        The configured maximumPageSize determines how many results can be returned in a single call.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • previousStartedEventId

        PollForDecisionTaskResponse.Builder previousStartedEventId​(Long previousStartedEventId)

        The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.

        Parameters:
        previousStartedEventId - The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.
        Returns:
        Returns a reference to this object so that method calls can be chained together.