Class EmptyMetricCollection
- java.lang.Object
-
- software.amazon.awssdk.metrics.internal.EmptyMetricCollection
-
- All Implemented Interfaces:
Iterable<MetricRecord<?>>
,MetricCollection
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 EmptyMetricCollection
create()
Instant
creationTime()
Iterator<MetricRecord<?>>
iterator()
<T> List<T>
metricValues(SdkMetric<T> metric)
Return all the values of the given metric.String
name()
-
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:
name
in interfaceMetricCollection
- Returns:
- The name of this metric collection.
-
metricValues
public <T> List<T> metricValues(SdkMetric<T> metric)
Description copied from interface:MetricCollection
Return all the values of the given metric.- Specified by:
metricValues
in 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:
children
in interfaceMetricCollection
- Returns:
- The child metric collections.
-
creationTime
public Instant creationTime()
- Specified by:
creationTime
in interfaceMetricCollection
- Returns:
- The time at which this collection was created.
-
iterator
public Iterator<MetricRecord<?>> iterator()
- Specified by:
iterator
in interfaceIterable<MetricRecord<?>>
-
create
public static EmptyMetricCollection create()
-
-