@Internal public class DelegatingDistribution extends java.lang.Object implements Metric, Distribution, java.io.Serializable
Distribution
that delegates to the instance for the current context.Constructor and Description |
---|
DelegatingDistribution(MetricName name) |
DelegatingDistribution(MetricName name,
boolean processWideContainer) |
Modifier and Type | Method and Description |
---|---|
MetricName |
getName()
The
MetricName given to this metric. |
void |
update(long value)
Add an observation to this distribution.
|
void |
update(long sum,
long count,
long min,
long max) |
public DelegatingDistribution(MetricName name)
public DelegatingDistribution(MetricName name, boolean processWideContainer)
public void update(long value)
Distribution
update
in interface Distribution
public void update(long sum, long count, long min, long max)
update
in interface Distribution
public MetricName getName()
Metric
MetricName
given to this metric.