Class DefaultMetricCollector
java.lang.Object
software.amazon.awssdk.metrics.internal.DefaultMetricCollector
- All Implemented Interfaces:
MetricCollector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollect()
Return the collected metrics.static MetricCollector
createChild
(String name) Create a child of this metric collector.name()
<T> void
reportMetric
(SdkMetric<T> metric, T data) Report a metric.toString()
-
Constructor Details
-
DefaultMetricCollector
-
-
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
-
toString
-