public static class RateLimitingPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RateLimitingPolicy |
build() |
RateLimitingPolicy.Builder |
copy(RateLimitingPolicy model) |
RateLimitingPolicy.Builder |
rateInRequestsPerSecond(Integer rateInRequestsPerSecond)
The maximum number of requests per second to allow.
|
RateLimitingPolicy.Builder |
rateKey(RateLimitingPolicy.RateKey rateKey)
The key used to group requests together.
|
public RateLimitingPolicy.Builder rateInRequestsPerSecond(Integer rateInRequestsPerSecond)
The maximum number of requests per second to allow.
rateInRequestsPerSecond
- the value to setpublic RateLimitingPolicy.Builder rateKey(RateLimitingPolicy.RateKey rateKey)
The key used to group requests together.
rateKey
- the value to setpublic RateLimitingPolicy build()
public RateLimitingPolicy.Builder copy(RateLimitingPolicy model)
Copyright © 2016–2024. All rights reserved.