Class EventRateSimpleMovingAverage

    • Constructor Detail

      • EventRateSimpleMovingAverage

        public EventRateSimpleMovingAverage​(long time,
                                            java.util.concurrent.TimeUnit unit)
    • Method Detail

      • setWindow

        public void setWindow​(long time,
                              java.util.concurrent.TimeUnit unit)
      • value

        public java.lang.Double value()
        Specified by:
        value in interface ValueStatistic<java.lang.Double>
        Returns:
        The current statistic value
      • rateUsingSeconds

        public java.lang.Double rateUsingSeconds()
      • rate

        public java.lang.Double rate​(java.util.concurrent.TimeUnit base)
      • event

        public void event​(long time,
                          long latency)
        Description copied from interface: ChainedEventObserver
        Called to indicate an event happened.
        Specified by:
        event in interface ChainedEventObserver
        Parameters:
        time - the clock at event completion in ns
        latency - the event latency in ns