Interface Counter

All Superinterfaces:
Metric, Serializable
All Known Implementing Classes:
CounterImpl, DelegatingCounter, NoOpCounter

public interface Counter extends Metric
A metric that reports a single long value and can be incremented or decremented.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dec()
     
    void
    dec(long n)
     
    void
    inc()
    Increment the counter.
    void
    inc(long n)
    Increment the counter by the given amount.

    Methods inherited from interface org.apache.beam.sdk.metrics.Metric

    getName
  • Method Details

    • inc

      void inc()
      Increment the counter.
    • inc

      void inc(long n)
      Increment the counter by the given amount.
    • dec

      void dec()
    • dec

      void dec(long n)