Class StatsAccumulatorImpl

java.lang.Object
com.atlassian.bamboo.performance.StatsAccumulatorImpl
All Implemented Interfaces:
StatsAccumulator

@NotThreadSafe public class StatsAccumulatorImpl extends Object implements StatsAccumulator
  • Constructor Details

    • StatsAccumulatorImpl

      public StatsAccumulatorImpl()
  • Method Details

    • add

      public void add(double value)
      Description copied from interface: StatsAccumulator
      Register the next value.
      Specified by:
      add in interface StatsAccumulator
    • getStats

      @Nullable public Stats getStats()
      Description copied from interface: StatsAccumulator
      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.
      Specified by:
      getStats in interface StatsAccumulator