public class LongAdderMetric extends AbstractMetric implements LongMetric
LongAdder.| Constructor and Description |
|---|
LongAdderMetric(String name,
@Nullable String desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long x)
Adds x to the metric.
|
void |
decrement()
Adds -1 to the metric.
|
void |
increment()
Adds 1 to the metric.
|
void |
reset()
Resets metric state.
|
long |
value() |
description, equals, hashCode, nameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAsStringdescription, namepublic void add(long x)
x - Value to be added.public void increment()
public void decrement()
public long value()
value in interface LongMetric
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020