Interface ExtendedLongUpDownCounter
- All Superinterfaces:
LongUpDownCounter
- All Known Implementing Classes:
ExtendedDefaultMeter.NoopLongUpDownCounter, SdkLongUpDownCounter
Extended
LongUpDownCounter with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif the up down counter is enabled.Methods inherited from interface LongUpDownCounter
add, add, add
-
Method Details
-
isEnabled
default boolean isEnabled()Returnstrueif the up down counter is enabled.This allows callers to avoid unnecessary compute when nothing is consuming the data. Because the response is subject to change over the application, callers should call this before each call to
LongUpDownCounter.add(long),LongUpDownCounter.add(long, Attributes), orLongUpDownCounter.add(long, Attributes, Context).
-