Constructor and Description |
---|
DelegatingGauge(MetricName name)
Create a
DelegatingGauge with perWorkerGauge and processWideContainer
set to false. |
DelegatingGauge(MetricName name,
boolean processWideContainer)
Create a
DelegatingGauge with perWorkerGauge set to false. |
DelegatingGauge(MetricName name,
boolean processWideContainer,
boolean perWorkerGauge) |
Modifier and Type | Method and Description |
---|---|
MetricName |
getName()
The
MetricName given to this metric. |
void |
set(long n)
Set the gauge.
|
public DelegatingGauge(MetricName name)
DelegatingGauge
with perWorkerGauge
and processWideContainer
set to false.name
- Metric name for this metric.public DelegatingGauge(MetricName name, boolean processWideContainer)
DelegatingGauge
with perWorkerGauge
set to false.name
- Metric name for this metric.processWideContainer
- Whether this Gauge is stored in the ProcessWide container or the
current thread's container.public DelegatingGauge(MetricName name, boolean processWideContainer, boolean perWorkerGauge)
name
- Metric name for this metric.processWideContainer
- Whether this gauge is stored in the ProcessWide container or the
current thread's container.perWorkerGauge
- Whether this gauge refers to a perWorker metric or not.public MetricName getName()
Metric
MetricName
given to this metric.