Class MutableCounterLong


@Public @Evolving public class MutableCounterLong extends MutableCounter
A mutable long counter
  • Constructor Details

    • MutableCounterLong

      public MutableCounterLong(MetricsInfo info, long initValue)
  • Method Details

    • incr

      public void incr()
      Description copied from class: MutableCounter
      Increment the metric value by 1.
      Specified by:
      incr in class MutableCounter
    • incr

      public void incr(long delta)
      Increment the value by a delta
      Parameters:
      delta - of the increment
    • value

      public long value()
    • snapshot

      public void snapshot(MetricsRecordBuilder builder, boolean all)
      Description copied from class: MutableMetric
      Get a snapshot of the metric
      Specified by:
      snapshot in class MutableMetric
      Parameters:
      builder - the metrics record builder
      all - if true, snapshot unchanged metrics as well