public interface CounterSet
Counter
grouped by keys.Modifier and Type | Method and Description |
---|---|
void |
add(String key,
long delta)
Increment the value by a given amount for the given key
|
default void |
inc(String key)
Increment the value by one for the given key
|
default void inc(String key)
This method is thread safe, The MetricsProvider will take care of synchronization.
key
- the key to increment the countvoid add(String key, long delta)
This method is thread safe, The MetricsProvider will take care of synchronization.
key
- the key to increment the count for the given keydelta
- amount to increment, this cannot be a negative number.Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.