Interface Edge.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Edge.Builder,Edge>, SdkBuilder<Edge.Builder,Edge>, SdkPojo
Enclosing class:
Edge

public static interface Edge.Builder extends SdkPojo, CopyableBuilder<Edge.Builder,Edge>
  • Method Details

    • referenceId

      Edge.Builder referenceId(Integer referenceId)

      Identifier of the edge. Unique within a service map.

      Parameters:
      referenceId - Identifier of the edge. Unique within a service map.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTime

      Edge.Builder startTime(Instant startTime)

      The start time of the first segment on the edge.

      Parameters:
      startTime - The start time of the first segment on the edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      Edge.Builder endTime(Instant endTime)

      The end time of the last segment on the edge.

      Parameters:
      endTime - The end time of the last segment on the edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summaryStatistics

      Edge.Builder summaryStatistics(EdgeStatistics summaryStatistics)

      Response statistics for segments on the edge.

      Parameters:
      summaryStatistics - Response statistics for segments on the edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • summaryStatistics

      default Edge.Builder summaryStatistics(Consumer<EdgeStatistics.Builder> summaryStatistics)

      Response statistics for segments on the edge.

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

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

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

      Edge.Builder responseTimeHistogram(Collection<HistogramEntry> responseTimeHistogram)

      A histogram that maps the spread of client response times on an edge. Only populated for synchronous edges.

      Parameters:
      responseTimeHistogram - A histogram that maps the spread of client response times on an edge. Only populated for synchronous edges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • responseTimeHistogram

      Edge.Builder responseTimeHistogram(HistogramEntry... responseTimeHistogram)

      A histogram that maps the spread of client response times on an edge. Only populated for synchronous edges.

      Parameters:
      responseTimeHistogram - A histogram that maps the spread of client response times on an edge. Only populated for synchronous edges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • responseTimeHistogram

      Edge.Builder responseTimeHistogram(Consumer<HistogramEntry.Builder>... responseTimeHistogram)

      A histogram that maps the spread of client response times on an edge. Only populated for synchronous edges.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to responseTimeHistogram(List<HistogramEntry>).

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

      Edge.Builder aliases(Collection<Alias> aliases)

      Aliases for the edge.

      Parameters:
      aliases - Aliases for the edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aliases

      Edge.Builder aliases(Alias... aliases)

      Aliases for the edge.

      Parameters:
      aliases - Aliases for the edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aliases

      Edge.Builder aliases(Consumer<Alias.Builder>... aliases)

      Aliases for the edge.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to aliases(List<Alias>).

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

      Edge.Builder edgeType(String edgeType)

      Describes an asynchronous connection, with a value of link.

      Parameters:
      edgeType - Describes an asynchronous connection, with a value of link.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • receivedEventAgeHistogram

      Edge.Builder receivedEventAgeHistogram(Collection<HistogramEntry> receivedEventAgeHistogram)

      A histogram that maps the spread of event age when received by consumers. Age is calculated each time an event is received. Only populated when EdgeType is link.

      Parameters:
      receivedEventAgeHistogram - A histogram that maps the spread of event age when received by consumers. Age is calculated each time an event is received. Only populated when EdgeType is link.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • receivedEventAgeHistogram

      Edge.Builder receivedEventAgeHistogram(HistogramEntry... receivedEventAgeHistogram)

      A histogram that maps the spread of event age when received by consumers. Age is calculated each time an event is received. Only populated when EdgeType is link.

      Parameters:
      receivedEventAgeHistogram - A histogram that maps the spread of event age when received by consumers. Age is calculated each time an event is received. Only populated when EdgeType is link.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • receivedEventAgeHistogram

      Edge.Builder receivedEventAgeHistogram(Consumer<HistogramEntry.Builder>... receivedEventAgeHistogram)

      A histogram that maps the spread of event age when received by consumers. Age is calculated each time an event is received. Only populated when EdgeType is link.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to receivedEventAgeHistogram(List<HistogramEntry>).

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