Annotation Type Metered
-
@Inherited @Documented @Retention(RUNTIME) @Target({TYPE,CONSTRUCTOR,METHOD,ANNOTATION_TYPE}) public @interface Metered
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
fancyNamewill be created and each time the#fancyName(String)method is invoked, the meter will be marked.
-
-
Element Detail
-
name
String name
- Returns:
- The name of the meter.
- Default:
- ""
-
-