io.rainfall.reporting.PeriodicReporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rainfall-core Show documentation
Show all versions of rainfall-core Show documentation
Rainfall-core is the core of the Rainfall framework
package io.rainfall.reporting;
import io.rainfall.statistics.StatisticsHolder;
import io.rainfall.statistics.StatisticsPeekHolder;
import java.util.List;
public class PeriodicReporter> implements Reporter {
private final long reportingIntervalInMillis;
private final Reporter reporter;
public PeriodicReporter(Reporter reporter, long reportingIntervalInMillis) {
this.reporter = reporter;
this.reportingIntervalInMillis = reportingIntervalInMillis;
}
@Override
public void header(List description) {
reporter.header(description);
}
@Override
public void report(StatisticsPeekHolder statisticsHolder) {
reporter.report(statisticsHolder);
}
@Override
public void summarize(StatisticsHolder statisticsHolder) {
reporter.summarize(statisticsHolder);
}
public long getReportingIntervalInMillis() {
return reportingIntervalInMillis;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy