m.Utils.LeakyBucket.LeakyBucket C# (CSharp) 메소드

LeakyBucket() 공개 메소드

public LeakyBucket ( int capacity, int leaksPerSecond ) : System
capacity int
leaksPerSecond int
리턴 System
        public LeakyBucket(int capacity, int leaksPerSecond)
        {
            Capacity = capacity;
            LeakRate = leaksPerSecond;

            currentSize = 0;
            lastLeakOn = DateTime.UtcNow;
        }