public class RateLimiterBucket extends Object implements Serializable
IRateLimiterComponent implementations.| Constructor and Description |
|---|
RateLimiterBucket()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getResetMillis(RateBucketPeriod period)
Returns the number of millis until the period resets.
|
void |
resetIfNecessary(RateBucketPeriod period)
Resets the count if the period boundary has been crossed.
|
public void resetIfNecessary(RateBucketPeriod period)
period - the periodpublic long getResetMillis(RateBucketPeriod period)
period - the periodCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.