Package io.opencensus.metrics
Class LongGauge.NoopLongGauge.NoopLongPoint
- java.lang.Object
-
- io.opencensus.metrics.LongGauge.LongPoint
-
- io.opencensus.metrics.LongGauge.NoopLongGauge.NoopLongPoint
-
- Enclosing class:
- LongGauge.NoopLongGauge
private static final class LongGauge.NoopLongGauge.NoopLongPoint extends LongGauge.LongPoint
No-op implementations of LongPoint class.
-
-
Field Summary
Fields Modifier and Type Field Description private static LongGauge.NoopLongGauge.NoopLongPoint
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
NoopLongPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long amt)
Adds the given value to the current value.void
set(long val)
Sets the given value.
-
-
-
Field Detail
-
INSTANCE
private static final LongGauge.NoopLongGauge.NoopLongPoint INSTANCE
-
-
Method Detail
-
add
public void add(long amt)
Description copied from class:LongGauge.LongPoint
Adds the given value to the current value. The values can be negative.- Specified by:
add
in classLongGauge.LongPoint
- Parameters:
amt
- the value to add
-
set
public void set(long val)
Description copied from class:LongGauge.LongPoint
Sets the given value.- Specified by:
set
in classLongGauge.LongPoint
- Parameters:
val
- the new value.
-
-