public interface Counter extends Metric
Metric that measures a count.| Modifier and Type | Method and Description |
|---|---|
void |
dec()
Decrement the current count by 1.
|
void |
dec(long n)
Decrement the current count by n.
|
long |
getCount()
Returns the current count.
|
void |
inc()
Increment the current count by 1.
|
void |
inc(long n)
Increment the current count by n.
|
Copyright © 2024 Alibaba Cloud Computing. All rights reserved.