Interface LoadAverage

  • All Known Implementing Classes:
    EWMA

    public interface LoadAverage
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double rate​(java.util.concurrent.TimeUnit rateUnit)
      Returns the rate in the given units of time.
      void tick()
      Mark the passage of time and decay the current rate accordingly.
      void update​(long n)
      Update the moving average with a new value.
    • Method Detail

      • update

        void update​(long n)
        Update the moving average with a new value.
        Parameters:
        n - the new value
      • tick

        void tick()
        Mark the passage of time and decay the current rate accordingly.
      • rate

        double rate​(java.util.concurrent.TimeUnit rateUnit)
        Returns the rate in the given units of time.
        Parameters:
        rateUnit - the unit of time
        Returns:
        the rate