Class RateLimitProperties.Default

java.lang.Object
com.rale4j.sb.config.RateLimitProperties.Default
Enclosing class:
RateLimitProperties

public static class RateLimitProperties.Default extends Object
Default rate limiting configuration.
  • 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