Class TokenBucket

java.lang.Object
com.linkedin.venice.throttle.TokenBucket
All Implemented Interfaces:
VeniceRateLimiter

public class TokenBucket extends 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.