Class FunctionTimerTrackerImpl

java.lang.Object
org.infinispan.metrics.impl.FunctionTimerTrackerImpl
All Implemented Interfaces:
org.infinispan.commons.stat.TimerTracker

public class FunctionTimerTrackerImpl extends Object implements org.infinispan.commons.stat.TimerTracker
A TimerTracker implementation that uses FunctionTimer instead of Timer.
See Also:
  • Method Details

    • update

      public void update(Duration duration)
      Specified by:
      update in interface org.infinispan.commons.stat.TimerTracker
    • update

      public void update(long value, TimeUnit timeUnit)
      Specified by:
      update in interface org.infinispan.commons.stat.TimerTracker
    • count

      public long count()
      Specified by:
      count in interface org.infinispan.commons.stat.TimerTracker
    • create

      public io.micrometer.core.instrument.FunctionTimer.Builder<FunctionTimerTrackerImpl> create(String metricName)
      Creates a FunctionTimer.Builder configured to collect the data from this instance.
      Parameters:
      metricName - The metric name.
      Returns:
      The builder instance.