| Constructor and Description | 
|---|
| DelegatingCounter(MetricName name)Create a  DelegatingCounterwithperWorkerCounterandprocessWideContainerset to false. | 
| DelegatingCounter(MetricName name,
                 boolean processWideContainer)Create a  DelegatingCounterwithperWorkerCounterset to false. | 
| DelegatingCounter(MetricName name,
                 boolean processWideContainer,
                 boolean perWorkerCounter) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | dec() | 
| void | dec(long n) | 
| MetricName | getName()The  MetricNamegiven 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.