| Package | Description |
|---|---|
| io.apiman.gateway.engine.components | |
| io.apiman.gateway.engine.impl | |
| io.apiman.gateway.engine.rates |
| Modifier and Type | Method and Description |
|---|---|
void |
IRateLimiterComponent.accept(String bucketId,
RateBucketPeriod period,
long limit,
long increment,
IAsyncResultHandler<RateLimitResponse> handler)
Adds another request to the given rate bucket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InMemoryRateLimiterComponent.accept(String bucketId,
RateBucketPeriod period,
long limit,
long increment,
IAsyncResultHandler<RateLimitResponse> handler) |
| Modifier and Type | Method and Description |
|---|---|
static RateBucketPeriod |
RateBucketPeriod.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RateBucketPeriod[] |
RateBucketPeriod.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
long |
RateLimiterBucket.getResetMillis(RateBucketPeriod period)
Returns the number of millis until the period resets.
|
void |
RateLimiterBucket.resetIfNecessary(RateBucketPeriod period)
Resets the count if the period boundary has been crossed.
|
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.