Class SampledRateCounterProxy<E extends java.lang.Number>

    • Constructor Detail

      • SampledRateCounterProxy

        public SampledRateCounterProxy​(ExtendedStatistics.Statistic<E> rate)
        Instantiates a new sampled rate counter proxy.
        Parameters:
        rate - the rate
    • Method Detail

      • increment

        public void increment​(long numerator,
                              long denominator)
        Description copied from interface: SampledRateCounter
        Increments the numerator and denominator by the passed values
        Specified by:
        increment in interface SampledRateCounter
      • decrement

        public void decrement​(long numerator,
                              long denominator)
        Description copied from interface: SampledRateCounter
        Decrements the numerator and denominator by the passed values
        Specified by:
        decrement in interface SampledRateCounter
      • setValue

        public void setValue​(long numerator,
                             long denominator)
        Description copied from interface: SampledRateCounter
        Sets the values of the numerator and denominator to the passed values
        Specified by:
        setValue in interface SampledRateCounter