public final class NoOpMetricCollector extends Object implements MetricCollector
| Modifier and Type | Method and Description |
|---|---|
MetricCollection |
collect()
Return the collected metrics.
|
static NoOpMetricCollector |
create() |
MetricCollector |
createChild(String name)
Create a child of this metric collector.
|
String |
name() |
<T> void |
reportMetric(SdkMetric<T> metric,
T data)
Report a metric.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic String name()
name in interface MetricCollectorpublic <T> void reportMetric(SdkMetric<T> metric, T data)
MetricCollectorreportMetric in interface MetricCollectorpublic MetricCollector createChild(String name)
MetricCollectorcreateChild in interface MetricCollectorname - The name of the child collector.public MetricCollection collect()
MetricCollector
Calling collect() prevents further invocations of MetricCollector.reportMetric(SdkMetric, Object).
collect in interface MetricCollectorpublic static NoOpMetricCollector create()
Copyright © 2021. All rights reserved.