All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.stat.CounterTracker Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.stat;

/**
 * Tracks a monotonically increasing values.
 * 

* The counters may never be reset to a lesser value. */ public interface CounterTracker { CounterTracker NO_OP = new CounterTracker() { @Override public void increment() { //no-op } @Override public void increment(double amount) { //no-op } }; /** * Update the counter by one. */ void increment(); /** * Update the counter by {@code amount}. * * @param amount The amount to add to the counter. */ void increment(double amount); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy