Interface TokenBucketLimiter
- All Known Implementing Classes:
TokenBucketLimiterImpl
public interface TokenBucketLimiter
This class can throttle to a specific rate, using an algorithm based on the Token Bucket metaphor.
The rate is specified in cycles per second (or 'Hertz').
- See Also:
-
Method Summary
-
Method Details
-
getRate
int getRate()Returns the rate in cycles per second (which is the same as saying 'in Hertz').- Returns:
- the rate in cycles per second (which is the same as saying 'in Hertz')
- See Also:
-
isSpin
boolean isSpin() -
limit
void limit()
-