public class ThrottleSettings extends Object implements Serializable, Cloneable
The API request rate limits.
| Constructor and Description |
|---|
ThrottleSettings() |
| Modifier and Type | Method and Description |
|---|---|
ThrottleSettings |
clone() |
boolean |
equals(Object obj) |
Integer |
getBurstLimit()
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon
whether the underlying token bucket is at its full capacity.
|
Double |
getRateLimit()
The API request steady-state rate limit.
|
int |
hashCode() |
void |
setBurstLimit(Integer burstLimit)
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon
whether the underlying token bucket is at its full capacity.
|
void |
setRateLimit(Double rateLimit)
The API request steady-state rate limit.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ThrottleSettings |
withBurstLimit(Integer burstLimit)
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon
whether the underlying token bucket is at its full capacity.
|
ThrottleSettings |
withRateLimit(Double rateLimit)
The API request steady-state rate limit.
|
public void setBurstLimit(Integer burstLimit)
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
burstLimit - The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds,
depending upon whether the underlying token bucket is at its full capacity.public Integer getBurstLimit()
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
public ThrottleSettings withBurstLimit(Integer burstLimit)
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
burstLimit - The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds,
depending upon whether the underlying token bucket is at its full capacity.public void setRateLimit(Double rateLimit)
The API request steady-state rate limit.
rateLimit - The API request steady-state rate limit.public Double getRateLimit()
The API request steady-state rate limit.
public ThrottleSettings withRateLimit(Double rateLimit)
The API request steady-state rate limit.
rateLimit - The API request steady-state rate limit.public String toString()
toString in class ObjectObject.toString()public ThrottleSettings clone()
Copyright © 2016. All rights reserved.