DoubleCounter.
| Modifier and Type | Method and Description |
|---|---|
| public DoubleCounter | Returns: The Counter instrument.Builds and returns a Counter 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 ObservableDoubleCounter | buildWithCallback(Consumer<ObservableDoubleMeasurement>
A callback which observes measurements when invoked. callback)Builds an Asynchronous Counter instrument with the given callback. |
| public DoubleCounterBuilder | |
| public DoubleCounterBuilder |
| build | back to summary |
|---|---|
| public DoubleCounter build() Builds and returns a Counter 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 ObservableDoubleCounter buildWithCallback(Consumer<ObservableDoubleMeasurement> callback) Builds an Asynchronous Counter 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 DoubleCounterBuilder setDescription(String description) Sets the description for this instrument.
| |
| setUnit | back to summary |
|---|---|
| public DoubleCounterBuilder setUnit(String unit) Sets the unit of measure for this instrument.
| |