Counter
instead.@Deprecated
public static interface MetricsContext.Counter<T extends java.lang.Number>
Modifier and Type | Method and Description |
---|---|
default java.util.Optional<T> |
count()
Deprecated.
Use
Counter.value() |
void |
increment()
Deprecated.
Increment the counter by a single whole number value (i.e.
|
void |
increment(T amount)
Deprecated.
Increment the counter by the provided amount.
|
default MetricsContext.Unit |
unit()
Deprecated.
The unit of the counter.
|
default T |
value()
Deprecated.
Reports the current count.
|
void increment()
void increment(T amount)
amount
- to be incremented@Deprecated default java.util.Optional<T> count()
Counter.value()
default T value()
default MetricsContext.Unit unit()