Class RateLimitProperties.Redis

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

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

    • Redis

      public Redis()
  • Method Details

    • isEnabled

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

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

      public String getHost()
      Gets the Redis host.
      Returns:
      the Redis host
    • setHost

      public void setHost(String host)
      Sets the Redis host.
      Parameters:
      host - the Redis host
    • getPort

      public int getPort()
      Gets the Redis port.
      Returns:
      the Redis port
    • setPort

      public void setPort(int port)
      Sets the Redis port.
      Parameters:
      port - the Redis port