/** * Instantiates a new abstract statistic. * * @param executor the executor * @param historySize the history size * @param historyNanos the history nanos */ AbstractStatistic(ValueStatistic<T> source, ScheduledExecutorService executor, int historySize, long historyNanos) { this.source = source; this.history = new SampledStatistic<T>(source, executor, historySize, historyNanos); }
/** * Instantiates a new abstract statistic. * * @param executor the executor * @param historySize the history size * @param historyNanos the history nanos */ AbstractStatistic(ValueStatistic<T> source, ScheduledExecutorService executor, int historySize, long historyNanos) { this.source = source; this.history = new SampledStatistic<T>(source, executor, historySize, historyNanos); }
/** * Instantiates a new abstract statistic. * * @param executor the executor * @param historySize the history size * @param historyNanos the history nanos */ AbstractStatistic(ValueStatistic<T> source, ScheduledExecutorService executor, int historySize, long historyNanos) { this.source = source; this.history = new SampledStatistic<T>(source, executor, historySize, historyNanos); }