Class ThroughputTimer

  • All Implemented Interfaces:
    com.codahale.metrics.Counting, com.codahale.metrics.Metered, com.codahale.metrics.Metric, com.codahale.metrics.Sampling

    public class ThroughputTimer
    extends com.codahale.metrics.Timer
    A throughput metric, wraps a Meter object to provide a one second instant throughput value returned by getValue().
    Author:
    Julien Viet
    • Constructor Detail

      • ThroughputTimer

        public ThroughputTimer()
    • Method Detail

      • getValue

        public Long getValue()
      • update

        public void update​(long duration,
                           TimeUnit unit)
        Overrides:
        update in class com.codahale.metrics.Timer