public class MetricsCat extends Object
MetricsPlaceValue,
the corresponding collector CombMetricsCollector,
and the event listener (generate function) at the key level AbstractMetricsKeyListener| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricsCat.TpFunction<T,U,K,R> |
| Constructor and Description |
|---|
MetricsCat(MetricsKey metricsKey,
BiFunction<MetricsKey,CombMetricsCollector,AbstractMetricsKeyListener> biFunc) |
MetricsCat(MetricsKey metricsKey,
MetricsCat.TpFunction<MetricsKey,MetricsPlaceValue,CombMetricsCollector,AbstractMetricsKeyListener> tpFunc) |
| Modifier and Type | Method and Description |
|---|---|
Function<CombMetricsCollector,AbstractMetricsKeyListener> |
getEventFunc() |
MetricsCat |
setPlaceType(MetricsPlaceValue placeType) |
public MetricsCat(MetricsKey metricsKey, BiFunction<MetricsKey,CombMetricsCollector,AbstractMetricsKeyListener> biFunc)
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 eventpublic MetricsCat(MetricsKey metricsKey, MetricsCat.TpFunction<MetricsKey,MetricsPlaceValue,CombMetricsCollector,AbstractMetricsKeyListener> tpFunc)
tpFunc - Ternary function, corresponding to finish and error events, because an additional record rt is required, and the type of metricsKey is requiredpublic MetricsCat setPlaceType(MetricsPlaceValue placeType)
public Function<CombMetricsCollector,AbstractMetricsKeyListener> getEventFunc()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.