Package com.codahale.metrics.annotation
Annotation Type Metered
-
@Retention(RUNTIME) @Target(METHOD) public @interface Metered
An annotation for marking a method of an annotated object as metered. Given a method like this:
A meter for the defining class with the name@Metered(name = "fancyName") public String fancyName(String name) { return "Sir Captain " + name; }
fancyName
will be created and each time the#fancyName(String)
method is invoked, the meter will be marked.