Method and Description |
---|
org.eclipse.microprofile.metrics.MetricRegistry.getMetadata()
Prior to 2.4 this method was the standard way to access
Metadata by their name; Doing so
might cause unnecessary creation of an intermediate map that might be computed by the implementation.
Prefer MetricRegistry.getMetadata(String) for key based lookup of a single Metadata ;
Use MetricRegistry.getNames() to iterate over all names. |
org.eclipse.microprofile.metrics.MetricRegistry.getMetrics()
Prior to 2.4 this method was the standard way to access
Metric s by their MetricID ;
Doing so might cause unnecessary creation of an intermediate map that might be computed by the
implementation. Prefer MetricRegistry.getMetric(MetricID) for key based lookup of single Metric ;
Use MetricRegistry.getMetricIDs() to iterate over all metrics.
Use MetricRegistry.getMetrics(MetricFilter) with MetricFilter.ALL if a (most likely) computed
Map is preferred. |
Copyright © 2020. All rights reserved.