Interface RateConfig.Builder

  • Method Details

    • rate

      The rate value for the limit. For request limits, this is the number of requests allowed per period. For token limits, this is the number of tokens allowed per period. For connection limits, this is the number of concurrent connections allowed.

      Parameters:
      rate - The rate value for the limit. For request limits, this is the number of requests allowed per period. For token limits, this is the number of tokens allowed per period. For connection limits, this is the number of concurrent connections allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • period

      RateConfig.Builder period(String period)

      The time period for the rate limit. Valid values:

      • second—Measures the rate limit over a one-second window.

      • minute—Measures the rate limit over a one-minute window.

      Parameters:
      period - The time period for the rate limit. Valid values:

      • second—Measures the rate limit over a one-second window.

      • minute—Measures the rate limit over a one-minute window.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • period

      RateConfig.Builder period(Period period)

      The time period for the rate limit. Valid values:

      • second—Measures the rate limit over a one-second window.

      • minute—Measures the rate limit over a one-minute window.

      Parameters:
      period - The time period for the rate limit. Valid values:

      • second—Measures the rate limit over a one-second window.

      • minute—Measures the rate limit over a one-minute window.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: