Class LongAdderWithDelegateMetric
- java.lang.Object
-
- org.apache.ignite.internal.processors.metric.AbstractMetric
-
- org.apache.ignite.internal.processors.metric.impl.LongAdderMetric
-
- org.apache.ignite.internal.processors.metric.impl.LongAdderWithDelegateMetric
-
- All Implemented Interfaces:
LongMetric,Metric
public class LongAdderWithDelegateMetric extends LongAdderMetric
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLongAdderWithDelegateMetric.Delegate
-
Constructor Summary
Constructors Constructor Description LongAdderWithDelegateMetric(String name, LongAdderWithDelegateMetric.Delegate delegate, @Nullable String descr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long x)Adds x to the metric.voiddecrement()Adds -1 to the metric.voidincrement()Adds 1 to the metric.-
Methods inherited from class org.apache.ignite.internal.processors.metric.impl.LongAdderMetric
reset, value
-
Methods inherited from class org.apache.ignite.internal.processors.metric.AbstractMetric
description, equals, hashCode, name
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.spi.metric.LongMetric
getAsString
-
Methods inherited from interface org.apache.ignite.spi.metric.Metric
description, name
-
-
-
-
Constructor Detail
-
LongAdderWithDelegateMetric
public LongAdderWithDelegateMetric(String name, LongAdderWithDelegateMetric.Delegate delegate, @Nullable @Nullable String descr)
- Parameters:
name- Name.delegate- Delegate to which all updates from new metric will be delegated to.descr- Description.
-
-
Method Detail
-
increment
public void increment()
Adds 1 to the metric.- Overrides:
incrementin classLongAdderMetric
-
decrement
public void decrement()
Adds -1 to the metric.- Overrides:
decrementin classLongAdderMetric
-
add
public void add(long x)
Adds x to the metric.- Overrides:
addin classLongAdderMetric- Parameters:
x- Value to be added.
-
-