@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface Counter extends Metric
| Modifier and Type | Method and Description | 
|---|---|
| void | decrement()Decrement  thisby 1. | 
| void | decrement(long n)Decrement  thisbyn. | 
| long | getCount()Returns the current value. | 
| void | increment()Increment  thisby 1. | 
| void | increment(long n)Increment  thisbyn. | 
void increment()
this by 1.void increment(long n)
this by n.n - The amount to increment.void decrement()
this by 1.void decrement(long n)
this by n.n - The amount to decrement.long getCount()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.