@Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) public @interface Monitored
Stopwatch
is used
as a monitor.
The Stopwatch name consists of a "name" part and a "suffix" part - these parts are provided using parameters of
the annotation. Rules are as follows:
fully.qualified.ClassName.methodName
Current name resolution applies since version 3.1.Modifier and Type | Optional Element and Description |
---|---|
String |
name
Returns the name for the
Stopwatch without its possible suffix - default is the class name. |
String |
suffix
Part added after the name part (which defaults to the class name or is specified on the class annotation).
|
public abstract String name
Stopwatch
without its possible suffix - default is the class name.
Using the parameter on the method annotation overrides name from the class.public abstract String suffix
Copyright © 2019. All rights reserved.