Package com.lightbend.cinnamon.metric
Interface GaugeLong
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longdecrement()Decrement thegaugevalue atomically and return the new valuelongincrement()Increment thegaugevalue atomically and return the new valuevoidset(long value)Set thegaugevalue
-
-
-
Field Detail
-
NONE
static final GaugeLong NONE
Empty no-opgauge.
-
-
Method Detail
-
set
void set(long value)
Set thegaugevalue- Parameters:
value- to set thegaugeto.
-
increment
long increment()
Increment thegaugevalue atomically and return the new value- Returns:
- the new value for this gauge
-
decrement
long decrement()
Decrement thegaugevalue atomically and return the new value- Returns:
- the new value for this gauge
-
-