Class RateLimitProperties.Bucket4j

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

public static class RateLimitProperties.Bucket4j extends Object
Configuration for the Bucket4j rate limiting strategy.
  • Constructor Details

    • Bucket4j

      public Bucket4j()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Checks if the Bucket4j rate limiting strategy is enabled.
      Returns:
      true if enabled, false otherwise
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets the Bucket4j rate limiting strategy enabled state.
      Parameters:
      enabled - the enabled state