Interface CallbackDetails.Builder

  • Method Details

    • callbackId

      CallbackDetails.Builder callbackId(String callbackId)

      The callback ID. Callback IDs are generated by the DurableContext when a durable function calls ctx.waitForCallback.

      Parameters:
      callbackId - The callback ID. Callback IDs are generated by the DurableContext when a durable function calls ctx.waitForCallback.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • result

      The response payload from the callback operation as a string.

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

      An error object that contains details about the failure.

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

      An error object that contains details about the 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: