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