Module com.github.akurilov.commons
Interface Throttle
-
- All Known Implementing Classes:
RateThrottle
public interface ThrottleThrottle can make a decision about the specified thing to pass or to wait. The throttle calls are not blocking so the caller should block if the throttle tells so.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleantryAcquire()Request a permit about a thinginttryAcquire(int times)Request permits about a set of things
-