Class SimpleCounter
java.lang.Object
org.apache.zookeeper.server.metric.Metric
org.apache.zookeeper.server.metric.SimpleCounter
- All Implemented Interfaces:
Counter
-
Constructor Details
-
SimpleCounter
-
-
Method Details
-
add
public void add(long value) Description copied from interface:Counter
Increment the value by a given amount.This method is thread safe, The MetricsProvider will take care of synchronization.
-
reset
public void reset() -
get
public long get()Description copied from interface:Counter
Get the current value held by the counter.This method is thread safe, The MetricsProvider will take care of synchronization.
-
values
-