Class LongGauge
- java.lang.Object
-
- org.apache.ignite.internal.processors.metric.AbstractMetric
-
- org.apache.ignite.internal.processors.metric.impl.LongGauge
-
- All Implemented Interfaces:
LongMetric,Metric
public class LongGauge extends AbstractMetric implements LongMetric
Implementation based on primitive supplier.
-
-
Constructor Summary
Constructors Constructor Description LongGauge(String name, @Nullable String desc, LongSupplier val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longvalue()-
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, reset
-
-
-
-
Constructor Detail
-
LongGauge
public LongGauge(String name, @Nullable @Nullable String desc, LongSupplier val)
- Parameters:
name- Name.desc- Description.val- Supplier.
-
-
Method Detail
-
value
public long value()
- Specified by:
valuein interfaceLongMetric- Returns:
- Value of the metric.
-
-