Class BooleanGauge
- java.lang.Object
-
- org.apache.ignite.internal.processors.metric.AbstractMetric
-
- org.apache.ignite.internal.processors.metric.impl.BooleanGauge
-
- All Implemented Interfaces:
BooleanMetric,Metric
public class BooleanGauge extends AbstractMetric implements BooleanMetric
Implementation based on primitive supplier.
-
-
Constructor Summary
Constructors Constructor Description BooleanGauge(String name, @Nullable String desc, BooleanSupplier val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalue()-
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.BooleanMetric
getAsString
-
Methods inherited from interface org.apache.ignite.spi.metric.Metric
description, name, reset
-
-
-
-
Constructor Detail
-
BooleanGauge
public BooleanGauge(String name, @Nullable @Nullable String desc, BooleanSupplier val)
- Parameters:
name- Name.desc- Description.val- Supplier.
-
-
Method Detail
-
value
public boolean value()
- Specified by:
valuein interfaceBooleanMetric- Returns:
- Value of the metric.
-
-