Interface StatsAccumulator

All Known Implementing Classes:
StatsAccumulatorImpl

@Internal @NotThreadSafe public interface StatsAccumulator
Accumulates values to calculate their statistics.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
     
    static final List<Integer>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(double value)
    Register the next value.
    Get a snapshot of statistics from values accumulated so far.
  • Field Details

  • Method Details

    • add

      void add(double value)
      Register the next value.
      Throws:
      IllegalArgumentException - for infinite value or NaN
    • getStats

      @Nullable Stats getStats()
      Get a snapshot of statistics from values accumulated so far. Returns null if no statistics have been collected. Note that provided percentiles are only an estimation.