Interface Registrant
-
public interface Registrant
User API for adding metrics registrants. A registrant can return metric sets that will be added to the common metrics registry that is sent to the reporters allowing additional metrics to be reported via the same mechanism.Make sure that your registrant implements this interface.
The constructor of your registrant class must have one of the following constructors:
Errors will be logged if the class does not have any acceptable constructors or if it does not implement this interface.public YourRegistrant() public YourRegistrant(com.typesafe.config.Config config)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.codahale.metrics.MetricSet[]
start()
Life cycle method called when telemetry is initiated.void
stop()
Life cycle method called when telemetry is stopped.
-