Class SharedRateLimiterFactory.SharedRateLimiter
- java.lang.Object
-
- org.apache.accumulo.core.util.ratelimit.GuavaRateLimiter
-
- org.apache.accumulo.core.util.ratelimit.SharedRateLimiterFactory.SharedRateLimiter
-
- All Implemented Interfaces:
RateLimiter
- Enclosing class:
- SharedRateLimiterFactory
protected class SharedRateLimiterFactory.SharedRateLimiter extends GuavaRateLimiter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquire(long permits)Sleep until the specified number of queries are available.voidreport()Report the current throughput and usage of this rate limiter to the debug log.voidupdate()Poll the callback, updating the current rate if necessary.-
Methods inherited from class org.apache.accumulo.core.util.ratelimit.GuavaRateLimiter
getRate, setRate
-
-
-
-
Method Detail
-
acquire
public void acquire(long permits)
Description copied from interface:RateLimiterSleep until the specified number of queries are available.- Specified by:
acquirein interfaceRateLimiter- Overrides:
acquirein classGuavaRateLimiter
-
update
public void update()
Poll the callback, updating the current rate if necessary.
-
report
public void report()
Report the current throughput and usage of this rate limiter to the debug log.
-
-