For event classes, the name must be a legal class name as specified in the Java
language, (for example, "com.example.Transaction". For event fields
or event settings, the name must be a valid identifier (for example,
"message"). See section 3.8 and 3.9 of the Java Language
Specification for more information.
If the specified name is invalid, the annotation is ignored.
A stable and easy-to-use event name is of the form:
[org|com|net].[organization|product].EventName
Events without a @Name annotation get their name from the fully
qualified class name, which works well for experimentation but should be
avoided in production.
"jfr", "internal", "events", or "Event"."jdk" namespace, with
no sub-namespaces for "hotspot", "gc", or "compiler".
This avoids unnecessary cognitive load for users. Events can instead be
arranged into categories, by using the @Category annotation.
Categories can be renamed freely without causing disruption to
dependencies| Modifier and Type | Method and Description |
|---|---|
| public String |
| value | back to summary |
|---|---|
| public String value() Returns the name.
| |