
io.muserver.RateLimiter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mu-server Show documentation
Show all versions of mu-server Show documentation
A simple but powerful web server framework
The newest version!
package io.muserver;
import java.util.Map;
/**
* A rate limiter. A limiter is created when {@link MuServerBuilder#withRateLimiter(RateLimitSelector)} is used.
*/
public interface RateLimiter {
/**
* @return A map of the current bucket names to the number of requests in each bucket
*/
Map currentBuckets();
/**
* @return The selector that was passed to {@link MuServerBuilder#withRateLimiter(RateLimitSelector)}
*/
RateLimitSelector selector();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy