@Inherited @Documented @Retention(value=RUNTIME) @Target(value={TYPE,CONSTRUCTOR,METHOD}) public @interface Metered
@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 abstract String name
Copyright © 2014. All Rights Reserved.