public interface MetricsContext
extends java.io.Serializable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MetricsContext.Counter<T extends java.lang.Number> |
static class |
MetricsContext.Unit |
| Modifier and Type | Method and Description |
|---|---|
default <T extends java.lang.Number> |
counter(java.lang.String name,
java.lang.Class<T> type,
MetricsContext.Unit unit)
Get a named counter of a specific type.
|
default void |
initialize(java.util.Map<java.lang.String,java.lang.String> properties) |
static MetricsContext |
nullMetrics()
Utility method for producing no metrics.
|
default void initialize(java.util.Map<java.lang.String,java.lang.String> properties)
default <T extends java.lang.Number> MetricsContext.Counter<T> counter(java.lang.String name, java.lang.Class<T> type, MetricsContext.Unit unit)
name - name of the metrictype - numeric type of the counter valueunit - the unit designation of the metricstatic MetricsContext nullMetrics()