Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.codahale.metrics.annotation;
An annotation for marking a method of an annotated object as metered.

Given a method like this:

     \@Metered(name = "fancyName")
     public String fancyName(String name) {
         return "Sir Captain " + name;

A meter for the defining class with the name fancyName will be created and each time the #fancyName(String) method is invoked, the meter will be marked.

public @interface Metered {
The name of the meter.
    String name() default "";

If true, use the given name an as absolute name. If false, use the given name relative to the annotated class.
    boolean absolute() default false;
New to GrepCode? Check out our FAQ X