org.zodiac.monitor.metrics.micrometer.ConcurrentGauge Maven / Gradle / Ivy
package org.zodiac.monitor.metrics.micrometer;
import io.micrometer.core.instrument.Gauge;
public interface ConcurrentGauge extends Gauge {
/**
* Get the current value of the ConcurrentGauge
*
* @return The current value.
*/
V getCount();
/**
* Get the maximum value of the ConcurrentGauge for the previously completed minute.
*
* This represents the highest number of concurrent
* invocations in the last complete minute.
*
* @return The maximum value in the previously completed minute.
*/
V getMax();
/**
* Get the minimum value of the ConcurrentGauge for the previously completed minute.
*
* This represents the lowest number of concurrent
* invocations in the last complete minute.
*
* @return The minimum value in the previously completed minute.
*/
V getMin();
/**
* Increment the concurrent gauge's value by 1.
* @return The current value.
*/
ConcurrentGauge inc();
/**
* Increment the concurrent gauge's value by delta.
* @param delta delta increased
* @return The current value.
*/
ConcurrentGauge inc(V delta);
/**
* Decrement the concurrent gauge's value by 1.
* @return self
*/
ConcurrentGauge dec();
/**
* Decrement the concurrent gauge's value by 1.
* @param delta delta decreased
* @return The current value.
*/
ConcurrentGauge dec(V delta);
}