OpenMetaverse.TokenBucket.TokenBucket C# (CSharp) 메소드

TokenBucket() 공개 메소드

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
리턴 System
        public TokenBucket(TokenBucket parent, int maxBurst, int dripRate)
        {
            this.parent = parent;
            MaxBurst = maxBurst;
            DripRate = dripRate;
            lastDrip = Environment.TickCount & Int32.MaxValue;
        }