Interface Edge.Builder

    • Method Detail

      • 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.
      • 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).

        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:
        #responseTimeHistogram(java.util.Collection)
      • 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).

        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:
        #aliases(java.util.Collection)
      • 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).

        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:
        #receivedEventAgeHistogram(java.util.Collection)