Package com.rale4j.sb.config
Class RateLimitProperties.Guava
java.lang.Object
com.rale4j.sb.config.RateLimitProperties.Guava
- Enclosing class:
RateLimitProperties
Configuration for the Guava rate limiting strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the Guava rate limiting strategy is enabled.void
setEnabled
(boolean enabled) Sets the Guava rate limiting strategy enabled state.
-
Constructor Details
-
Guava
public Guava()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Checks if the Guava rate limiting strategy is enabled.- Returns:
- true if enabled, false otherwise
-
setEnabled
public void setEnabled(boolean enabled) Sets the Guava rate limiting strategy enabled state.- Parameters:
enabled
- the enabled state
-