public class InMemoryRateLimiterComponent extends Object implements IRateLimiterComponent
| Constructor and Description |
|---|
InMemoryRateLimiterComponent()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String bucketId,
RateBucketPeriod period,
int limit,
IAsyncResultHandler<RateLimitResponse> handler)
Adds another request to the given rate bucket.
|
public void accept(String bucketId, RateBucketPeriod period, int limit, IAsyncResultHandler<RateLimitResponse> handler)
IRateLimiterComponentCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.