@FunctionalInterface
public interface MetricsReporter
Modifier and Type | Method and Description |
---|---|
default void |
initialize(java.util.Map<java.lang.String,java.lang.String> properties)
A custom MetricsReporter implementation must have a no-arg constructor, which will be called
first.
|
void |
report(MetricsReport report)
Indicates that an operation is done by reporting a
MetricsReport . |
default void initialize(java.util.Map<java.lang.String,java.lang.String> properties)
initialize(Map properties)
is called to complete the
initialization.properties
- propertiesvoid report(MetricsReport report)
MetricsReport
. A MetricsReport
is usually directly derived from a MetricsReport
instance.report
- The MetricsReport
to report.