All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yammer.metrics.core.Metric Maven / Gradle / Ivy

There is a newer version: 3.0.0-BETA1
Show newest version
package com.yammer.metrics.core;

/**
 * A tag interface to indicate that a class is a metric.
 */
public interface Metric {
    /**
     * Allow the given {@link MetricProcessor} to process {@code this} as a metric.
     *
     * @param processor    a {@link MetricProcessor}
     * @param name         the name of the current metric
     * @param context      a given context which should be passed on to {@code processor}
     * @param           the type of the context object
     * @throws Exception if something goes wrong
     */
     void processWith(MetricProcessor processor, MetricName name, T context) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy