DoubleUpDownCounter.
| Modifier and Type | Method and Description |
|---|---|
| public DoubleUpDownCounter | Returns: The UpDownCounter instrument.Builds and returns an UpDownCounter instrument with the configuration. |
| public default ObservableDoubleMeasurement | Returns: an observable measurement that batch callbacks use to observe values.Build an observer for this instrument to observe values from a |
| public ObservableDoubleUpDownCounter | buildWithCallback(Consumer<ObservableDoubleMeasurement>
A callback which observes measurements when invoked. callback)Builds an Asynchronous UpDownCounter instrument with the given callback. |
| public DoubleUpDownCounterBuilder | |
| public DoubleUpDownCounterBuilder |
| build | back to summary |
|---|---|
| public DoubleUpDownCounter build() Builds and returns an UpDownCounter instrument with the configuration.
| |
| buildObserver | back to summary |
|---|---|
| public default ObservableDoubleMeasurement 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 ObservableDoubleUpDownCounter buildWithCallback(Consumer<ObservableDoubleMeasurement> 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:
| |
| setDescription | back to summary |
|---|---|
| public DoubleUpDownCounterBuilder setDescription(String description) Sets the description for this instrument.
| |
| setUnit | back to summary |
|---|---|
| public DoubleUpDownCounterBuilder setUnit(String unit) Sets the unit of measure for this instrument.
| |