twisted.protocols.htbView Source (View In Hierarchy)
Implementation of a Token bucket.
A bucket can hold a certain number of tokens and it drains over time.
|Class Variable||maxburst||The maximum number of tokens that the bucket can hold at any given time. If
|Class Variable||rate||The rate at which the bucket drains, in number of tokens per second. If the
|Method||add||Adds tokens to the
|Method||drip||Let some of the bucket drain.|
None, the bucket has an infinite size. (type:
None, the bucket drains instantaneously. (type: