java.lang.Object
io.debezium.connector.spanner.metrics.latency.Statistics

public class Statistics extends Object
This class provides functionality to calculate statistics: min, max, avg values, percentiles.
  • Field Details

    • minValue

      private final AtomicLong minValue
    • maxValue

      private final AtomicLong maxValue
    • averageValue

      private final com.google.common.util.concurrent.AtomicDouble averageValue
    • lastValue

      private final AtomicLong lastValue
    • count

      private final AtomicLong count
    • quantileMeter

      private final QuantileMeter quantileMeter
  • Constructor Details

  • Method Details

    • reset

      public void reset()
    • start

      public void start()
    • shutdown

      public void shutdown()
    • update

      public void update(long value)
    • getMinValue

      public Long getMinValue()
    • getMaxValue

      public Long getMaxValue()
    • getAverageValue

      public Double getAverageValue()
    • getLastValue

      public Long getLastValue()
    • getValueAtP50

      public Double getValueAtP50()
    • getValueAtP95

      public Double getValueAtP95()
    • getValueAtP99

      public Double getValueAtP99()