private static class AwsSdkMetrics.MetricRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Set<MetricType> |
metricTypes |
private java.util.Set<MetricType> |
readOnly |
Constructor and Description |
---|
MetricRegistry() |
Modifier and Type | Method and Description |
---|---|
boolean |
addMetricType(MetricType type) |
<T extends MetricType> |
addMetricTypes(java.util.Collection<T> types) |
java.util.Set<MetricType> |
predefinedMetrics() |
boolean |
removeMetricType(MetricType type) |
<T extends MetricType> |
setMetricTypes(java.util.Collection<T> types) |
private void |
syncReadOnly() |
private final java.util.Set<MetricType> metricTypes
private volatile java.util.Set<MetricType> readOnly
private void syncReadOnly()
public boolean addMetricType(MetricType type)
public <T extends MetricType> boolean addMetricTypes(java.util.Collection<T> types)
public <T extends MetricType> void setMetricTypes(java.util.Collection<T> types)
public boolean removeMetricType(MetricType type)
public java.util.Set<MetricType> predefinedMetrics()