Package io.dropwizard.metrics.common
Class ScheduledReporterManager
java.lang.Object
io.dropwizard.metrics.common.ScheduledReporterManager
- All Implemented Interfaces:
Managed
Manages a
ScheduledReporter
lifecycle.-
Constructor Summary
ConstructorsConstructorDescriptionScheduledReporterManager
(com.codahale.metrics.ScheduledReporter reporter, Duration period) Manages the givenreporter
by reporting with the givenperiod
.ScheduledReporterManager
(com.codahale.metrics.ScheduledReporter reporter, Duration period, boolean reportOnStop) Manages the givenreporter
by reporting with the givenperiod
. -
Method Summary
-
Constructor Details
-
ScheduledReporterManager
Manages the givenreporter
by reporting with the givenperiod
.- Parameters:
reporter
- the reporter to manage.period
- the frequency to report metrics at.- See Also:
-
ScheduledReporterManager
public ScheduledReporterManager(com.codahale.metrics.ScheduledReporter reporter, Duration period, boolean reportOnStop) Manages the givenreporter
by reporting with the givenperiod
.- Parameters:
reporter
- the reporter to manage.period
- the frequency to report metrics at.reportOnStop
- whether the reporter should send one last report upon stopping- Since:
- 2.0
-
-
Method Details