public interface Counter extends Metric
Metric that measures a count.| 限定符和类型 | 方法和说明 |
|---|---|
void |
dec()
Decrement the current count by 1.
|
void |
dec(long n)
Decrement the current count by the given value.
|
long |
getCount()
Returns the current count.
|
void |
inc()
Increment the current count by 1.
|
void |
inc(long n)
Increment the current count by the given value.
|
void |
set(long n)
Sets the current value.
|
void inc()
void inc(long n)
n - value to increment the current count byvoid dec()
void dec(long n)
n - value to decrement the current count byvoid set(long n)
long getCount()
Copyright © 2024 The Apache Software Foundation. All rights reserved.