@FunctionalInterface
public interface MetricsReporter
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
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.default void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeable