public class AccessLimit extends JsonObject
| Constructor and Description |
|---|
AccessLimit() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLimit() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setLimit(int limit) |
AccessLimit |
withEnabled(boolean enabled) |
AccessLimit |
withLimit(int limit) |
toStringpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - Whether to turn on IP single node access limitpublic int getLimit()
public void setLimit(int limit)
limit - Maximum number of requests per IP node in 1 secondpublic AccessLimit withEnabled(boolean enabled)
enabled - Whether to turn on IP single node access limitpublic AccessLimit withLimit(int limit)
limit - Maximum number of requests per IP node in 1 secondCopyright © 2021. All rights reserved.