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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetHost()Gets the Redis host.intgetPort()Gets the Redis port.booleanChecks if the Redis rate limiting strategy is enabled.voidsetEnabled(boolean enabled) Sets the Redis rate limiting strategy enabled state.voidSets the Redis host.voidsetPort(int port) Sets the Redis port.
- 
Constructor Details- 
Redispublic Redis()
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()Checks if the Redis rate limiting strategy is enabled.- Returns:
- true if enabled, false otherwise
 
- 
setEnabledpublic void setEnabled(boolean enabled) Sets the Redis rate limiting strategy enabled state.- Parameters:
- enabled- the enabled state
 
- 
getHostGets the Redis host.- Returns:
- the Redis host
 
- 
setHostSets the Redis host.- Parameters:
- host- the Redis host
 
- 
getPortpublic int getPort()Gets the Redis port.- Returns:
- the Redis port
 
- 
setPortpublic void setPort(int port) Sets the Redis port.- Parameters:
- port- the Redis port
 
 
-