com.yammer.metrics.core
Interface Metric

All Known Subinterfaces:
Metered
All Known Implementing Classes:
Counter, Gauge, Histogram, JmxGauge, Meter, PercentGauge, RatioGauge, Timer, ToggleGauge

public interface Metric

A tag interface to indicate that a class is a metric.


Method Summary
<T> void
processWith(MetricProcessor<T> processor, MetricName name, T context)
          Allow the given MetricProcessor to process this as a metric.
 

Method Detail

processWith

<T> void processWith(MetricProcessor<T> processor,
                     MetricName name,
                     T context)
                 throws Exception
Allow the given MetricProcessor to process this as a metric.

Type Parameters:
T - the type of the context object
Parameters:
processor - a MetricProcessor
name - the name of the current metric
context - a given context which should be passed on to processor
Throws:
Exception - if something goes wrong


Copyright © 2012. All Rights Reserved.