public synchronized void clear() { sampling.removeDerivedStatistic(average); average = new MinMaxAverage(); sampling.addDerivedStatistic(average); }
public LatencyMonitor(Set<T> targets) { this.sampling = new LatencySampling<T>(targets, 1.0); this.average = new MinMaxAverage(); sampling.addDerivedStatistic(average); }