public class RateLimit extends Object implements Serializable
| Constructor and Description |
|---|
RateLimit(double accesses,
long windowsMs) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAccesses() |
double |
getRatePerMs() |
long |
getWindowMs() |
static RateLimit |
parse(String rateLimit) |
String |
toString() |
public double getAccesses()
public long getWindowMs()
public double getRatePerMs()
public static RateLimit parse(String rateLimit) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2021. All rights reserved.