Package org.oxerr.rescu.ext.ratelimiter
Interface RateLimiter
- All Known Implementing Classes:
RedissonRateLimiter
public interface RateLimiter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acquire()
Acquires a permit from this RateLimiter, blocking until one is available.
-
Method Details
-
acquire
void acquire()Acquires a permit from this RateLimiter, blocking until one is available.Acquires a permit, if one is available and returns immediately, reducing the number of available permits by one.
-