OpenMetaverse.TokenBucket.TokenBucket C# (CSharp) Method

TokenBucket() public method

Default constructor
public TokenBucket ( TokenBucket parent, int maxBurst, int dripRate ) : System
parent TokenBucket Parent bucket if this is a child bucket, or /// null if this is a root bucket
maxBurst int Maximum size of the bucket in bytes, or /// zero if this bucket has no maximum capacity
dripRate int Rate that the bucket fills, in bytes per /// second. If zero, the bucket always remains full
return System
        public TokenBucket(TokenBucket parent, int maxBurst, int dripRate)
        {
            this.parent = parent;
            MaxBurst = maxBurst;
            DripRate = dripRate;
            lastDrip = Environment.TickCount & Int32.MaxValue;
        }