Package com.palantir.util
Class AggregatingVersionedMetric<T>
- java.lang.Object
-
- com.palantir.util.AggregatingVersionedMetric<T>
-
- All Implemented Interfaces:
com.codahale.metrics.Gauge<T>
,com.codahale.metrics.Metric
public class AggregatingVersionedMetric<T> extends Object implements com.codahale.metrics.Gauge<T>
A Gauge based off ofAggregatingVersionedSupplier
that exposes methods to interact with the underlying Supplier.
-
-
Constructor Summary
Constructors Constructor Description AggregatingVersionedMetric(AggregatingVersionedSupplier<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getLastValueForKey(Integer key)
T
getValue()
VersionedType<T>
getVersionedValue()
void
update(Integer key, T value)
-
-
-
Constructor Detail
-
AggregatingVersionedMetric
public AggregatingVersionedMetric(AggregatingVersionedSupplier<T> delegate)
-
-