Interface FailureTrace.Builder

  • Method Details

    • failureCode

      FailureTrace.Builder failureCode(Integer failureCode)

      The failure code for the trace.

      Parameters:
      failureCode - The failure code for the trace.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureReason

      FailureTrace.Builder failureReason(String failureReason)

      The reason the interaction failed.

      Parameters:
      failureReason - The reason the interaction failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      FailureTrace.Builder metadata(Metadata metadata)

      Information about the failure that occurred.

      Parameters:
      metadata - Information about the failure that occurred.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      default FailureTrace.Builder metadata(Consumer<Metadata.Builder> metadata)

      Information about the failure that occurred.

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

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

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

      FailureTrace.Builder traceId(String traceId)

      The unique identifier of the trace.

      Parameters:
      traceId - The unique identifier of the trace.
      Returns:
      Returns a reference to this object so that method calls can be chained together.