Class MetricsCat
java.lang.Object
org.apache.dubbo.metrics.model.key.MetricsCat
The behavior wrapper class of MetricsKey,
which saves the complete content of the key
MetricsPlaceValue,
the corresponding collector CombMetricsCollector,
and the event listener (generate function) at the key level AbstractMetricsKeyListener-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMetricsCat(MetricsKey metricsKey, BiFunction<MetricsKey, CombMetricsCollector, AbstractMetricsKeyListener> biFunc) MetricsCat(MetricsKey metricsKey, MetricsCat.TpFunction<MetricsKey, MetricsPlaceValue, CombMetricsCollector, AbstractMetricsKeyListener> tpFunc) -
Method Summary
-
Constructor Details
-
MetricsCat
public MetricsCat(MetricsKey metricsKey, BiFunction<MetricsKey, CombMetricsCollector, AbstractMetricsKeyListener> biFunc) - Parameters:
metricsKey- The key corresponding to the listening event, not necessarily the export key(export key may be dynamic)biFunc- Binary function, corresponding to MetricsKey with less content, corresponding to post event
-
MetricsCat
public MetricsCat(MetricsKey metricsKey, MetricsCat.TpFunction<MetricsKey, MetricsPlaceValue, CombMetricsCollector, AbstractMetricsKeyListener> tpFunc) - Parameters:
tpFunc- Ternary function, corresponding to finish and error events, because an additional record rt is required, and the type of metricsKey is required
-
-
Method Details
-
setPlaceType
-
getEventFunc
-