Package com.rale4j.sb.config
Class RateLimitProperties.Redis
java.lang.Object
com.rale4j.sb.config.RateLimitProperties.Redis
- Enclosing class:
RateLimitProperties
Configuration for the Redis rate limiting strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()
Gets the Redis host.int
getPort()
Gets the Redis port.boolean
Checks if the Redis rate limiting strategy is enabled.void
setEnabled
(boolean enabled) Sets the Redis rate limiting strategy enabled state.void
Sets the Redis host.void
setPort
(int port) Sets the Redis port.
-
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
Gets the Redis host.- Returns:
- the Redis host
-
setHost
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
-