Interface ContextDetails.Builder

  • Method Details

    • replayChildren

      ContextDetails.Builder replayChildren(Boolean replayChildren)

      Whether the state data of child operations of this completed context should be included in the invoke payload and GetDurableExecutionState response.

      Parameters:
      replayChildren - Whether the state data of child operations of this completed context should be included in the invoke payload and GetDurableExecutionState response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • result

      The response payload from the context.

      Parameters:
      result - The response payload from the context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      Details about the context failure.

      Parameters:
      error - Details about the context failure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      Details about the context failure.

      This is a convenience method that creates an instance of the ErrorObject.Builder avoiding the need to create one manually via ErrorObject.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to error(ErrorObject).

      Parameters:
      error - a consumer that will call methods on ErrorObject.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: