Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RateLimit |
build() |
RateLimit.Builder |
copy(RateLimit o) |
RateLimit.Builder |
unit(RateLimit.Unit unit)
The unit of time over which rate limits are calculated.
|
RateLimit.Builder |
value(Integer value)
The number of requests that can be made per time period.
|
public RateLimit.Builder value(Integer value)
The number of requests that can be made per time period.
value
- the value to setpublic RateLimit.Builder unit(RateLimit.Unit unit)
The unit of time over which rate limits are calculated.
Example: SECOND
unit
- the value to setpublic RateLimit build()
public RateLimit.Builder copy(RateLimit o)
Copyright © 2016–2022. All rights reserved.