Class TimeWindowCounter

java.lang.Object
org.apache.dubbo.metrics.aggregate.TimeWindowCounter

public class TimeWindowCounter extends Object
Wrapper around Counter like Long and Integer.
  • Constructor Details

    • TimeWindowCounter

      public TimeWindowCounter(int bucketNum, long timeWindowSeconds)
  • Method Details

    • get

      public double get()
    • bucketLivedSeconds

      public long bucketLivedSeconds()
    • bucketLivedMillSeconds

      public long bucketLivedMillSeconds()
    • increment

      public void increment()
    • increment

      public void increment(Long step)
    • decrement

      public void decrement()
    • decrement

      public void decrement(Long step)