Package org.apache.beam.sdk.metrics
Class DelegatingCounter
- java.lang.Object
-
- org.apache.beam.sdk.metrics.DelegatingCounter
-
-
Constructor Summary
Constructors Constructor Description DelegatingCounter(MetricName name)
DelegatingCounter(MetricName name, boolean processWideContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dec()
void
dec(long n)
MetricName
getName()
TheMetricName
given to this metric.void
inc()
Increment the counter.void
inc(long n)
Increment the counter by the given amount.
-
-
-
Constructor Detail
-
DelegatingCounter
public DelegatingCounter(MetricName name)
-
DelegatingCounter
public DelegatingCounter(MetricName name, boolean processWideContainer)
-
-
Method Detail
-
inc
public void inc(long n)
Increment the counter by the given amount.
-
getName
public MetricName getName()
Description copied from interface:Metric
TheMetricName
given to this metric.
-
-