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

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

The 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 - 2025 Weber Informatics LLC | Privacy Policy