Package org.apache.beam.sdk.metrics
Class NoOpCounter
java.lang.Object
org.apache.beam.sdk.metrics.NoOpCounter
- All Implemented Interfaces:
Serializable
,Counter
,Metric
A no-op implementation of Counter. This class exists to provide a default if an implementation of
MetricsContainer does not override a Counter getter.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dec()
void
dec
(long n) static NoOpCounter
getName()
TheMetricName
given to this metric.void
inc()
Increment the counter.void
inc
(long n) Increment the counter by the given amount.
-
Method Details
-
inc
public void inc()Description copied from interface:Counter
Increment the counter. -
inc
public void inc(long n) Description copied from interface:Counter
Increment the counter by the given amount. -
dec
public void dec() -
dec
public void dec(long n) -
getName
Description copied from interface:Metric
TheMetricName
given to this metric. -
getInstance
-