public class SimpleCounter extends Object implements Counter
| Constructor and Description |
|---|
SimpleCounter(String name) |
| Modifier and Type | Method and Description |
|---|---|
long |
addAndGet(long delta)
Adds the delta value to the current value and returns the new value.
|
int |
compareTo(Instrument instrument) |
String |
getName() |
long |
getValue() |
long |
incrementAndGet()
Returns the new value after one has been added to the Counter.
|
public SimpleCounter(String name)
public long incrementAndGet()
CounterincrementAndGet in interface Counterpublic long addAndGet(long delta)
Counterpublic String getName()
getName in interface Instrumentpublic long getValue()
getValue in interface Instrumentpublic int compareTo(Instrument instrument)
compareTo in interface Comparable<Instrument>Copyright © 2016 Atlassian. All rights reserved.