Package com.linecorp.centraldogma.server
Class QuotaConfig
java.lang.Object
com.linecorp.centraldogma.server.QuotaConfig
CentralDogma
API quota configuration.-
Constructor Summary
ConstructorDescriptionQuotaConfig
(int requestQuota, int timeWindowSeconds) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
double
Returns a maximum number of acceptable requests per second.int
Returns a maximum number of acceptable requests which is created with the givenrequestQuota
.int
Returns a time windows in seconds which is created with the giventimeWindowSeconds
.toString()
-
Constructor Details
-
QuotaConfig
public QuotaConfig(int requestQuota, int timeWindowSeconds) Creates a new instance.
-
-
Method Details
-
timeWindowSeconds
public int timeWindowSeconds()Returns a time windows in seconds which is created with the giventimeWindowSeconds
. -
requestQuota
public int requestQuota()Returns a maximum number of acceptable requests which is created with the givenrequestQuota
. -
permitsPerSecond
public double permitsPerSecond()Returns a maximum number of acceptable requests per second. -
equals
-
hashCode
public int hashCode() -
toString
-