APIdia Launch Partner
Top Description Methods
jdk.jfr

public @Interface Registered

extends Annotation
Annotations
@Target:TYPE
@Inherited
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Inherited, .Retention, .RetentionPolicy, .Target

Event annotation, for programmatic event registration.

Events are automatically registered when they are first used. This annotation can be used to override that registration. To register events programmatically, use FlightRecorder#register(Class).

Since
9

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the event is to be registered when the event class is first used, false otherwise.
value
()

Returns true if the event is to be registered when the event class is first used, false otherwise.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public boolean value()

Returns true if the event is to be registered when the event class is first used, false otherwise.

Returns:boolean

true if the event is to be registered when the event class is first used, false otherwise.