Interface Counter

All Superinterfaces:
Meter

public interface Counter extends Meter
Represents a counter.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Builds a counter.

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.metrics.Meter

    Meter.Id, Meter.Type
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the cumulative count.
    default void
    Update the counter by one.
    void
    increment(double amount)
    Update the counter by amount.

    Methods inherited from interface de.iip_ecosphere.platform.support.metrics.Meter

    getId, getName, measure
  • Method Details

    • increment

      default void increment()
      Update the counter by one.
    • increment

      void increment(double amount)
      Update the counter by amount.
      Parameters:
      amount - amount to add to the counter
    • count

      double count()
      Returns the cumulative count.
      Returns:
      The cumulative count since this counter was created.