Package com.rale4j.sb.config
Class RateLimitProperties.Bucket4j
java.lang.Object
com.rale4j.sb.config.RateLimitProperties.Bucket4j
- Enclosing class:
RateLimitProperties
Configuration for the Bucket4j rate limiting strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the Bucket4j rate limiting strategy is enabled.void
setEnabled
(boolean enabled) Sets the Bucket4j rate limiting strategy enabled state.
-
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
-