public static class SolrMetricManager.GaugeWrapper<T> extends Object implements com.codahale.metrics.Gauge<T>
Gauge
metrics, which are usually implemented as
lambdas that often keep a reference to their parent instance. In order to make sure that
all such metrics are removed when their parent instance is removed / closed the
metric is associated with an instance tag, which can be used then to remove
wrappers with the matching tag using SolrMetricManager.unregisterGauges(String, String)
.Constructor and Description |
---|
GaugeWrapper(com.codahale.metrics.Gauge<T> gauge,
String tag) |
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.Gauge<T> |
getGauge() |
String |
getTag() |
T |
getValue() |
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.