value

val value: Long

The counter's net value: total incremented across all replicas minus total decremented.

Formed exactly from both halves, so it is answered whenever the net fits in a Long, even when totalIncrement or totalDecrement on its own does not.

Throws

if the net does not fit in a Long.