Class DefaultMetricCollector
java.lang.Object
software.amazon.awssdk.metrics.internal.DefaultMetricCollector
- All Implemented Interfaces:
 MetricCollector
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncollect()Return the collected metrics.static MetricCollectorcreateChild(String name) Create a child of this metric collector.name()<T> voidreportMetric(SdkMetric<T> metric, T data) Report a metric.toString() 
- 
Constructor Details
- 
DefaultMetricCollector
 
 - 
 - 
Method Details
- 
name
- Specified by:
 namein interfaceMetricCollector- Returns:
 - The name of this collector.
 
 - 
reportMetric
Description copied from interface:MetricCollectorReport a metric.- Specified by:
 reportMetricin interfaceMetricCollector
 - 
createChild
Description copied from interface:MetricCollectorCreate a child of this metric collector.- Specified by:
 createChildin interfaceMetricCollector- Parameters:
 name- The name of the child collector.- Returns:
 - The child collector.
 
 - 
collect
Description copied from interface:MetricCollectorReturn the collected metrics.Calling
collect()prevents further invocations ofMetricCollector.reportMetric(SdkMetric, Object).- Specified by:
 collectin interfaceMetricCollector- Returns:
 - The collected metrics.
 
 - 
create
 - 
toString
 
 -