Package com.codahale.metrics
Class DerivativeGauge<F,T>
- java.lang.Object
-
- com.codahale.metrics.DerivativeGauge<F,T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DerivativeGauge(Gauge<F> base)
Creates a new derivative with the given base gauge.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
getValue()
Returns the metric's current value.protected abstract T
transform(F value)
Transforms the value of the base gauge to the value of this gauge.
-