org.qi4j.api.metrics
Interface MetricsGauge<T>

Type Parameters:
T - Any type holding the MetricsGauge's current value.
All Superinterfaces:
Metric
All Known Implementing Classes:
DefaultMetric, YammerGauge

public interface MetricsGauge<T>
extends Metric

MetricsGauge is the most basic Metric type, and is completely flexible and therefor handled slightly differently in the MetricsFactory than all other Gauges. It needs to pass on custom code, so the implementation is typically an anonymous class, inlined at the implementation.


Method Summary
 T value()
          Returns the metric's current value.
 

Method Detail

value

T value()
Returns the metric's current value.

Returns:
the metric's current value