Interface SampledCounter

    • Method Detail

      • shutdown

        void shutdown()
        Shutdown this counter
      • getMostRecentSample

        TimeStampedCounterValue getMostRecentSample()
        Returns the most recent sampled value
        Returns:
        Value of the most recent sampled value
      • getAllSampleValues

        TimeStampedCounterValue[] getAllSampleValues()
        Returns all samples in history
        Returns:
        An array containing the TimeStampedCounterValue's
      • getAndReset

        long getAndReset()
        Returns the current value of the counter and resets it to 0
        Returns:
        current value of the counter