Class NullRateLimiter
- java.lang.Object
-
- org.apache.accumulo.core.util.ratelimit.NullRateLimiter
-
- All Implemented Interfaces:
RateLimiter
public class NullRateLimiter extends Object implements RateLimiter
A rate limiter which doesn't actually limit rates at all.
-
-
Field Summary
Fields Modifier and Type Field Description static NullRateLimiter
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquire(long permits)
Sleep until the specified number of queries are available.long
getRate()
Get current QPS of the rate limiter, with a nonpositive rate indicating no limit.
-
-
-
Field Detail
-
INSTANCE
public static final NullRateLimiter INSTANCE
-
-
Method Detail
-
getRate
public long getRate()
Description copied from interface:RateLimiter
Get current QPS of the rate limiter, with a nonpositive rate indicating no limit.- Specified by:
getRate
in interfaceRateLimiter
-
acquire
public void acquire(long permits)
Description copied from interface:RateLimiter
Sleep until the specified number of queries are available.- Specified by:
acquire
in interfaceRateLimiter
-
-