public class Quota
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Quota(long numRequests,
Duration interval) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable java.lang.Object o) |
Duration |
getInterval()
The duration context within which to allow requests.
|
long |
getNumRequests()
The number of allowed requests.
|
int |
hashCode() |
java.lang.String |
toString() |
public Quota(long numRequests,
Duration interval)
public long getNumRequests()
public Duration getInterval()
public boolean equals(@Nullable java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object