Package software.amazon.awssdk.metrics
Class NoOpMetricCollector
java.lang.Object
software.amazon.awssdk.metrics.NoOpMetricCollector
- All Implemented Interfaces:
MetricCollector
A metric collector that doesn't do anything.
-
Method Summary
Modifier and TypeMethodDescriptioncollect()
Return the collected metrics.static NoOpMetricCollector
create()
createChild
(String name) Create a child of this metric collector.name()
<T> void
reportMetric
(SdkMetric<T> metric, T data) Report a metric.
-
Method Details
-
name
- Specified by:
name
in interfaceMetricCollector
- Returns:
- The name of this collector.
-
reportMetric
Description copied from interface:MetricCollector
Report a metric.- Specified by:
reportMetric
in interfaceMetricCollector
-
createChild
Description copied from interface:MetricCollector
Create a child of this metric collector.- Specified by:
createChild
in interfaceMetricCollector
- Parameters:
name
- The name of the child collector.- Returns:
- The child collector.
-
collect
Description copied from interface:MetricCollector
Return the collected metrics.Calling
collect()
prevents further invocations ofMetricCollector.reportMetric(SdkMetric, Object)
.- Specified by:
collect
in interfaceMetricCollector
- Returns:
- The collected metrics.
-
create
-