Module io.ebean.api

Interface CountMetric


public interface CountMetric
Metric for timed events like transaction execution times.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(long micros)
    Add to the counter.
    long
    get(boolean reset)
    Return the count value.
    void
    Increment the counter by 1.
    boolean
    Return true if there are no metrics collected since the last collection.
    void
    Reset the statistics.
    void
    Visit non empty metrics.
  • Method Details

    • add

      void add(long micros)
      Add to the counter.
    • increment

      void increment()
      Increment the counter by 1.
    • get

      long get(boolean reset)
      Return the count value.
    • isEmpty

      boolean isEmpty()
      Return true if there are no metrics collected since the last collection.
    • reset

      void reset()
      Reset the statistics.
    • visit

      void visit(MetricVisitor visitor)
      Visit non empty metrics.