com.espertech.esper.metrics.codahale_metrics.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 java.lang.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:
java.lang.Exception - if something goes wrong

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com