@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface Counter extends Metric
Modifier and Type | Method and Description |
---|---|
void |
decrement()
Decrement
this by 1. |
void |
decrement(long n)
Decrement
this by n . |
long |
getCount()
Returns the current value.
|
void |
increment()
Increment
this by 1. |
void |
increment(long n)
Increment
this by n . |
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–2019 Cloudera. All rights reserved.