Package org.apache.beam.sdk.metrics
Class DelegatingGauge
java.lang.Object
org.apache.beam.sdk.metrics.DelegatingGauge
- All Implemented Interfaces:
 Serializable,Gauge,Metric
Implementation of 
Gauge that delegates to the instance for the current context.- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDelegatingGauge(MetricName name) Create aDelegatingGaugewithperWorkerGaugeandprocessWideContainerset to false.DelegatingGauge(MetricName name, boolean processWideContainer)  - 
Method Summary
Modifier and TypeMethodDescriptiongetName()TheMetricNamegiven to this metric.voidset(long n) Set the gauge. 
- 
Constructor Details
- 
DelegatingGauge
Create aDelegatingGaugewithperWorkerGaugeandprocessWideContainerset to false.- Parameters:
 name- Metric name for this metric.
 - 
DelegatingGauge
- Parameters:
 name- Metric name for this metric.processWideContainer- Whether this gauge is stored in the ProcessWide container or the current thread's container.
 
 - 
 - 
Method Details