public final class DependantRateLimiter extends RateLimiter
index, logger, milliseconds, roundBuffer| Constructor and Description |
|---|
DependantRateLimiter(int requests,
int milliseconds,
RateLimiter dependant)
Constructs a new RateLimiter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Await()
Call this method before any code you want to enforce the rate limit on.
|
public DependantRateLimiter(int requests,
int milliseconds,
RateLimiter dependant)
requests - the x in 'x requests per y milliseconds'milliseconds - the y in 'x requests per y milliseconds'dependant - the rate limiter this one is dependant onpublic void Await()
Await in class RateLimiterCopyright © 2016. All rights reserved.