Package com.rale4j.sb.spi
Interface RateLimiterProvider
public interface RateLimiterProvider
Service Provider Interface (SPI) for custom rate-limiting strategies.
Implement this interface to provide custom rate-limiting implementations.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of the rate-limiting strategy.Returns the name of the rate-limiting strategy.
-
Method Details
-
getStrategyName
String getStrategyName()Returns the name of the rate-limiting strategy.- Returns:
- the strategy name
-
createStrategy
RateLimitStrategy createStrategy()Creates a new instance of the rate-limiting strategy.- Returns:
- the rate-limiting strategy
-