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