Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.metrics.core;

A processor of metric instances.

Parameters:
<T>
 
 public interface MetricProcessor<T> {
    
Process the given Metered instance.

Parameters:
name the name of the meter
meter the meter
context the context of the meter
Throws:
java.lang.Exception if something goes wrong
    void processMeter(MetricName nameMetered meter, T contextthrows Exception;

    
Process the given counter.

Parameters:
name the name of the counter
counter the counter
context the context of the meter
Throws:
java.lang.Exception if something goes wrong
    void processCounter(MetricName nameCounter counter, T contextthrows Exception;

    
Process the given histogram.

Parameters:
name the name of the histogram
histogram the histogram
context the context of the meter
Throws:
java.lang.Exception if something goes wrong
    void processHistogram(MetricName nameHistogram histogram, T contextthrows Exception;

    
Process the given timer.

Parameters:
name the name of the timer
timer the timer
context the context of the meter
Throws:
java.lang.Exception if something goes wrong
    void processTimer(MetricName nameTimer timer, T contextthrows Exception;

    
Process the given gauge.

Parameters:
name the name of the gauge
gauge the gauge
context the context of the meter
Throws:
java.lang.Exception if something goes wrong
    void processGauge(MetricName nameGauge<?> gauge, T contextthrows Exception;
New to GrepCode? Check out our FAQ X