Class EmptyMetricCollection
- java.lang.Object
-
- software.amazon.awssdk.metrics.internal.EmptyMetricCollection
-
- All Implemented Interfaces:
Iterable<MetricRecord<?>>,MetricCollection
@SdkInternalApi public final class EmptyMetricCollection extends Object implements MetricCollection
-
-
Constructor Summary
Constructors Constructor Description EmptyMetricCollection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MetricCollection>children()static EmptyMetricCollectioncreate()InstantcreationTime()Iterator<MetricRecord<?>>iterator()<T> List<T>metricValues(SdkMetric<T> metric)Return all the values of the given metric.Stringname()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface software.amazon.awssdk.metrics.MetricCollection
childrenWithName, stream
-
-
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceMetricCollection- Returns:
- The name of this metric collection.
-
metricValues
public <T> List<T> metricValues(SdkMetric<T> metric)
Description copied from interface:MetricCollectionReturn all the values of the given metric.- Specified by:
metricValuesin interfaceMetricCollection- Type Parameters:
T- The type of the value.- Parameters:
metric- The metric.- Returns:
- All of the values of this metric.
-
children
public List<MetricCollection> children()
- Specified by:
childrenin interfaceMetricCollection- Returns:
- The child metric collections.
-
creationTime
public Instant creationTime()
- Specified by:
creationTimein interfaceMetricCollection- Returns:
- The time at which this collection was created.
-
iterator
public Iterator<MetricRecord<?>> iterator()
- Specified by:
iteratorin interfaceIterable<MetricRecord<?>>
-
create
public static EmptyMetricCollection create()
-
-