protected class SharedRateLimiterFactory.SharedRateLimiter extends GuavaRateLimiter
Modifier and Type | Method and Description |
---|---|
void |
acquire(long permits)
Sleep until the specified number of queries are available.
|
void |
report()
Report the current throughput and usage of this rate limiter to the debug log.
|
void |
update()
Poll the callback, updating the current rate if necessary.
|
getRate, setRate
public void acquire(long permits)
RateLimiter
acquire
in interface RateLimiter
acquire
in class GuavaRateLimiter
public void update()
public void report()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.