public final class RateLimitCheck extends Object
test()method which returns
truefirst, and then return
falsefor all subsequent invocations within the given time interval afterwards. The next call then returns
trueand so on. This is useful as a check for rate-limiting some other process.
|Constructor and Description|
public RateLimitCheck(long time, TimeUnit unit)
Copyright © 2014–2018. All rights reserved.