Interface Rate

  • All Superinterfaces:
    Metric

    public interface Rate
    extends Metric
    Rate metric for measuring the rate of events.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Rate NONE
      Empty no-op Rate.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void mark()
      Mark the occurrence of an event.
      void mark​(long n)
      Mark the occurrence of a given number of events.
      • Methods inherited from interface com.lightbend.cinnamon.metric.Metric

        destroy
    • Field Detail

      • NONE

        static final Rate NONE
        Empty no-op Rate.
    • Method Detail

      • mark

        void mark()
        Mark the occurrence of an event.
      • mark

        void mark​(long n)
        Mark the occurrence of a given number of events.
        Parameters:
        n - the number of events