public static class RequestRateLimitingConfiguration.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RequestRateLimitingConfiguration.Builder |
actionDurationInSeconds(Integer actionDurationInSeconds)
Duration of block action application in seconds when
requestsLimit is reached. |
RequestRateLimitingConfiguration |
build() |
RequestRateLimitingConfiguration.Builder |
copy(RequestRateLimitingConfiguration model) |
RequestRateLimitingConfiguration.Builder |
periodInSeconds(Integer periodInSeconds)
Evaluation period in seconds.
|
RequestRateLimitingConfiguration.Builder |
requestsLimit(Integer requestsLimit)
Requests allowed per evaluation period.
|
public RequestRateLimitingConfiguration.Builder periodInSeconds(Integer periodInSeconds)
Evaluation period in seconds.
periodInSeconds
- the value to setpublic RequestRateLimitingConfiguration.Builder requestsLimit(Integer requestsLimit)
Requests allowed per evaluation period.
requestsLimit
- the value to setpublic RequestRateLimitingConfiguration.Builder actionDurationInSeconds(Integer actionDurationInSeconds)
Duration of block action application in seconds when requestsLimit
is reached.
Optional and can be 0 (no block duration).
actionDurationInSeconds
- the value to setpublic RequestRateLimitingConfiguration build()
public RequestRateLimitingConfiguration.Builder copy(RequestRateLimitingConfiguration model)
Copyright © 2016–2024. All rights reserved.