Interface TrafficPattern.Builder

  • Method Details

    • trafficType

      TrafficPattern.Builder trafficType(String trafficType)

      Defines the traffic patterns. Choose either PHASES or STAIRS.

      Parameters:
      trafficType - Defines the traffic patterns. Choose either PHASES or STAIRS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • trafficType

      TrafficPattern.Builder trafficType(TrafficType trafficType)

      Defines the traffic patterns. Choose either PHASES or STAIRS.

      Parameters:
      trafficType - Defines the traffic patterns. Choose either PHASES or STAIRS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • phases

      Defines the phases traffic specification.

      Parameters:
      phases - Defines the phases traffic specification.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • phases

      TrafficPattern.Builder phases(Phase... phases)

      Defines the phases traffic specification.

      Parameters:
      phases - Defines the phases traffic specification.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • phases

      Defines the phases traffic specification.

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

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

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

      Defines the stairs traffic pattern.

      Parameters:
      stairs - Defines the stairs traffic pattern.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stairs

      Defines the stairs traffic pattern.

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

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

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