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