Package org.apache.beam.sdk.metrics
Class DelegatingDistribution
java.lang.Object
org.apache.beam.sdk.metrics.DelegatingDistribution
- All Implemented Interfaces:
Serializable
,Distribution
,Metric
@Internal
public class DelegatingDistribution
extends Object
implements Metric, Distribution, Serializable
Implementation of
Distribution
that delegates to the instance for the current context.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
TheMetricName
given to this metric.void
update
(long value) Add an observation to this distribution.void
update
(long sum, long count, long min, long max)
-
Constructor Details
-
DelegatingDistribution
-
DelegatingDistribution
-
-
Method Details
-
update
public void update(long value) Description copied from interface:Distribution
Add an observation to this distribution.- Specified by:
update
in interfaceDistribution
-
update
public void update(long sum, long count, long min, long max) - Specified by:
update
in interfaceDistribution
-
getName
Description copied from interface:Metric
TheMetricName
given to this metric.
-