Package io.muserver
Interface RateLimiter
-
public interface RateLimiter
A rate limiter. A limiter is created whenMuServerBuilder.withRateLimiter(RateLimitSelector)
is used.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Long>
currentBuckets()
RateLimitSelector
selector()
-
-
-
Method Detail
-
currentBuckets
java.util.Map<java.lang.String,java.lang.Long> currentBuckets()
- Returns:
- A map of the current bucket names to the number of requests in each bucket
-
selector
RateLimitSelector selector()
- Returns:
- The selector that was passed to
MuServerBuilder.withRateLimiter(RateLimitSelector)
-
-