Interface RateLimiter
- All Known Implementing Classes:
NoOpRateLimiter,RealmTokenBucketRateLimiter
public interface RateLimiter
Interface for rate limiting requests
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThis signifies that a request is being made.
-
Method Details
-
canProceed
boolean canProceed()This signifies that a request is being made. That is, the rate limiter should count the request at this point.- Returns:
- Whether the request is allowed to proceed by the rate limiter
-