Interface Counter

  • All Superinterfaces:
    Metric, java.io.Serializable
    All Known Implementing Classes:
    DelegatingCounter

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

      All Methods Instance Methods Abstract Methods 
      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 Detail

      • 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)