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 TypeMethodDescriptionvoiddec()voiddec(long n) static NoOpCountergetName()TheMetricNamegiven to this metric.voidinc()Increment the counter.voidinc(long n) Increment the counter by the given amount.
-
Method Details
-
inc
public void inc()Description copied from interface:CounterIncrement the counter. -
inc
public void inc(long n) Description copied from interface:CounterIncrement the counter by the given amount. -
dec
public void dec() -
dec
public void dec(long n) -
getName
Description copied from interface:MetricTheMetricNamegiven to this metric. -
getInstance
-