public interface AbsoluteCounter extends Counter
Counter that resets is value to 0 every time getValue() is called.
Use this when the value in the counter changes a lot and hence is likely to wrap
| Modifier and Type | Method and Description |
|---|---|
long |
getValue()
Whenever this is called, the current value is returned and the value is reset to zero.
|
addAndGet, incrementAndGetgetNamecompareTolong getValue()
getValue in interface InstrumentCounterCopyright © 2016 Atlassian. All rights reserved.