On this page
Annotation Type Enabled
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
public @interface Enabled
Event annotation, determines if an event should be enabled by default.
If an event doesn't have the annotation, then by default the event is enabled.
- Since:
- 9
Fields
Optional Elements
| Modifier and Type | Optional Element | Description |
|---|---|---|
boolean |
value |
Returns |
Fields
NAME
static final String NAME
Setting name "enabled", signifies that the event should be recorded.
Elements
value
boolean value
Returns true if by default the event should be enabled, false otherwise.
- Returns:
trueif by default the event should be enabled by default,falseotherwise
- Default:
- true
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/jdk.jfr/jdk/jfr/Enabled.html