public class AtomicLongMetric extends AbstractMetric implements LongMetric
| Constructor and Description |
|---|
AtomicLongMetric(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() |
void |
value(long val)
Sets 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 LongMetricpublic void value(long val)
val - Value.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020