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