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

org.infinispan.commons.stat.micrometer.MicrometerCounterTracker Maven / Gradle / Ivy

The newest version!
package org.infinispan.commons.stat.micrometer;

import org.infinispan.commons.stat.CounterTracker;

import io.micrometer.core.instrument.Counter;

/**
 * A {@link CounterTracker} implementation that stores the value in {@link Counter}.
 *
 * @since 15.1
 */
public record MicrometerCounterTracker(Counter counter) implements CounterTracker {

   @Override
   public void increment() {
      counter.increment();
   }

   @Override
   public void increment(double amount) {
      counter.increment(amount);
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy