All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rainfall.reporting.PeriodicReporter Maven / Gradle / Ivy

There is a newer version: 1.6.10
Show newest version
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