@Inherited @Documented @Retention(value=RUNTIME) @Target(value={TYPE,CONSTRUCTOR,METHOD,ANNOTATION_TYPE}) public @interface ResponseMetered
Given a method like this:
@ResponseMetered(name = "fancyName")
public String fancyName(String name) {
return "Sir Captain " + name;
}
A meter for the defining class with the name fancyName will be created for 1xx/2xx/3xx/4xx/5xx responses
and each time the #fancyName(String) method is invoked, the appropriate response meter will be marked.
public abstract String name
Copyright © 2021. All rights reserved.