Package org.eclipse.microprofile.metrics
Interface ConcurrentGauge
- All Superinterfaces:
Metric
A concurrent gauge is a gauge that measures parallel invocations of a method.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dec()
Decrement the concurrent gauge's value by 1long
getCount()
Get the current value of the ConcurrentGaugelong
getMax()
Get the maximum value of the ConcurrentGauge for the previously completed minute.long
getMin()
Get the minimum value of the ConcurrentGauge for the previously completed minute.void
inc()
Increment the concurrent gauge's value by 1
-
Method Details
-
getCount
long getCount()Get the current value of the ConcurrentGauge- Returns:
- the current value.
-
getMax
long getMax()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.- Returns:
- The maximum value in the previously completed minute.
-
getMin
long getMin()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.- Returns:
- The minimum value in the previously completed minute.
-
inc
void inc()Increment the concurrent gauge's value by 1 -
dec
void dec()Decrement the concurrent gauge's value by 1
-