| Constructor and Description | 
|---|
DelegatingCounter(MetricName name)
Create a  
DelegatingCounter with perWorkerCounter and processWideContainer set to false. | 
DelegatingCounter(MetricName name,
                 boolean processWideContainer)
Create a  
DelegatingCounter with perWorkerCounter set to false. | 
DelegatingCounter(MetricName name,
                 boolean processWideContainer,
                 boolean perWorkerCounter)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
dec()  | 
void | 
dec(long n)  | 
MetricName | 
getName()
The  
MetricName given to this metric. | 
void | 
inc()
Increment the counter. 
 | 
void | 
inc(long n)
Increment the counter by the given amount. 
 | 
public DelegatingCounter(MetricName name)
DelegatingCounter with perWorkerCounter and processWideContainer set to false.name - Metric name for this metric.public DelegatingCounter(MetricName name, boolean processWideContainer)
DelegatingCounter with perWorkerCounter set to false.name - Metric name for this metric.processWideContainer - Whether this Counter is stored in the ProcessWide container or the
     current thread's container.public DelegatingCounter(MetricName name, boolean processWideContainer, boolean perWorkerCounter)
name - Metric name for this metric.processWideContainer - Whether this Counter is stored in the ProcessWide container or the
     current thread's container.perWorkerCounter - Whether this Counter refers to a perWorker metric or not.public void inc(long n)
public MetricName getName()
MetricMetricName given to this metric.