Interface LimitEntry.Builder

  • Method Details

    • dimensions

      LimitEntry.Builder dimensions(Map<String,String> dimensions)

      A map of dimension names to dimension values for this rule entry. Keys must match the parent rate limit's dimension keys. Values may use * as a wildcard, but only in trailing positions based on the dimension keys ordering.

      Parameters:
      dimensions - A map of dimension names to dimension values for this rule entry. Keys must match the parent rate limit's dimension keys. Values may use * as a wildcard, but only in trailing positions based on the dimension keys ordering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requests

      The request rate limit configuration. Specifies the maximum number of requests allowed per time period.

      Parameters:
      requests - The request rate limit configuration. Specifies the maximum number of requests allowed per time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requests

      LimitEntry.Builder requests(RateConfig... requests)

      The request rate limit configuration. Specifies the maximum number of requests allowed per time period.

      Parameters:
      requests - The request rate limit configuration. Specifies the maximum number of requests allowed per time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requests

      The request rate limit configuration. Specifies the maximum number of requests allowed per time period.

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

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

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

      The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.

      Parameters:
      tokens - The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tokens

      LimitEntry.Builder tokens(RateConfig... tokens)

      The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.

      Parameters:
      tokens - The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tokens

      The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.

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

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

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

      LimitEntry.Builder connections(Collection<RateConfig> connections)

      The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.

      Parameters:
      connections - The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connections

      LimitEntry.Builder connections(RateConfig... connections)

      The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.

      Parameters:
      connections - The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connections

      LimitEntry.Builder connections(Consumer<RateConfig.Builder>... connections)

      The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.

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

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

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