Package com.rale4j.sb.config
Class RateLimitProperties.Default
java.lang.Object
com.rale4j.sb.config.RateLimitProperties.Default
- Enclosing class:
RateLimitProperties
Default rate limiting configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the default rate limit duration.int
getLimit()
Gets the default rate limit.void
setDuration
(int duration) Sets the default rate limit duration.void
setLimit
(int limit) Sets the default rate limit.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
getLimit
public int getLimit()Gets the default rate limit.- Returns:
- the default rate limit
-
setLimit
public void setLimit(int limit) Sets the default rate limit.- Parameters:
limit
- the default rate limit
-
getDuration
public int getDuration()Gets the default rate limit duration.- Returns:
- the default rate limit duration
-
setDuration
public void setDuration(int duration) Sets the default rate limit duration.- Parameters:
duration
- the default rate limit duration
-