/** * The units associated with the interval */ default TimeUnit getTimeUnit() { if (isScheduled()) { return TimeUnit.MINUTES; } else { return null; } }
/** * The interval at which Reporters produced by this Factory should report */ default Long getInterval() { if (isScheduled()) { return 1L; } else { return null; } }
if (!reporterFactory.isScheduled() || reporterFactory.getInterval() == null) {