final class RateLimitConfigurationImpl extends java.lang.Object implements RateLimitConfiguration
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.configuration.Configuration |
config |
private static int |
ONE_HOUR_IN_MILLIS |
Constructor and Description |
---|
RateLimitConfigurationImpl(org.apache.commons.configuration.Configuration config) |
Modifier and Type | Method and Description |
---|---|
int |
getLimit() |
long |
getResetWindowInMillisForToken() |
private static final int ONE_HOUR_IN_MILLIS
private final org.apache.commons.configuration.Configuration config
@Inject public RateLimitConfigurationImpl(org.apache.commons.configuration.Configuration config)
public int getLimit()
getLimit
in interface RateLimitConfiguration
public long getResetWindowInMillisForToken()
getResetWindowInMillisForToken
in interface RateLimitConfiguration