LongUpDownCounter.
| Modifier and Type | Method and Description |
|---|---|
| public LongUpDownCounter | Returns: The UpDownCounter instrument.Builds and returns an UpDownCounter instrument with the configuration. |
| public default ObservableLongMeasurement | Returns: an observable measurement that batch callbacks use to observe values.Build an observer for this instrument to observe values from a |
| public ObservableLongUpDownCounter | buildWithCallback(Consumer<ObservableLongMeasurement>
A callback which observes measurements when invoked. callback)Builds an Asynchronous UpDownCounter instrument with the given callback. |
| public DoubleUpDownCounterBuilder | |
| public LongUpDownCounterBuilder | |
| public LongUpDownCounterBuilder |
| build | back to summary |
|---|---|
| public LongUpDownCounter build() Builds and returns an UpDownCounter instrument with the configuration.
| |
| buildObserver | back to summary |
|---|---|
| public default ObservableLongMeasurement buildObserver() Build an observer for this instrument to observe values from a This observer MUST be registered when creating a
| |
| buildWithCallback | back to summary |
|---|---|
| public ObservableLongUpDownCounter buildWithCallback(Consumer<ObservableLongMeasurement> callback) Builds an Asynchronous UpDownCounter instrument with the given callback. The callback will be called when the instrument is being observed. Callbacks are expected to abide by the following restrictions:
| |
| ofDoubles | back to summary |
|---|---|
| public DoubleUpDownCounterBuilder ofDoubles() Sets the Counter for recording | |
| setDescription | back to summary |
|---|---|
| public LongUpDownCounterBuilder setDescription(String description) Sets the description for this instrument.
| |
| setUnit | back to summary |
|---|---|
| public LongUpDownCounterBuilder setUnit(String unit) Sets the unit of measure for this instrument.
| |