public class AbsoluteAtomicCounter extends AtomicCounter implements AbsoluteCounter
Counter that resets its value to zero every time getValue() is called.name, value| Constructor and Description |
|---|
AbsoluteAtomicCounter(String name) |
AbsoluteAtomicCounter(String name,
AtomicLong atomicLongRef) |
AbsoluteAtomicCounter(String name,
long value) |
| Modifier and Type | Method and Description |
|---|---|
long |
getValue()
Whenever this method is called, the counter is reset to zero after the values is returned.
|
addAndGet, compareTo, getName, incrementAndGet, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAndGet, incrementAndGetgetNamecompareTopublic AbsoluteAtomicCounter(String name)
public AbsoluteAtomicCounter(String name, long value)
public AbsoluteAtomicCounter(String name, AtomicLong atomicLongRef)
public long getValue()
getValue in interface AbsoluteCountergetValue in interface InstrumentgetValue in class AtomicCounterCopyright © 2016 Atlassian. All rights reserved.