public class LongAdderWithDelegateMetric extends LongAdderMetric
| Modifier and Type | Class and Description |
|---|---|
static interface |
LongAdderWithDelegateMetric.Delegate |
| Constructor and Description |
|---|
LongAdderWithDelegateMetric(String name,
LongAdderWithDelegateMetric.Delegate delegate,
@Nullable String descr) |
| 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.
|
reset, valuedescription, equals, hashCode, nameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAsStringdescription, namepublic LongAdderWithDelegateMetric(String name, LongAdderWithDelegateMetric.Delegate delegate, @Nullable @Nullable String descr)
name - Name.delegate - Delegate to which all updates from new metric will be delegated to.descr - Description.public void increment()
increment in class LongAdderMetricpublic void decrement()
decrement in class LongAdderMetricpublic void add(long x)
add in class LongAdderMetricx - Value to be added.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021