Class TokenBucket

  • All Implemented Interfaces:
    VeniceRateLimiter

    public class TokenBucket
    extends java.lang.Object
    implements VeniceRateLimiter
    See Also:
    Token Bucket on Wikipedia This implementation aims to be very high performance with the goal of supporting a very large number of TokenBuckets in an application; thus avoiding an auxilliary thread to refill the bucket.