Module jdk.jfr
Package jdk.jfr

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
    • Field Summary

      Fields 
      Modifier and TypeFieldsDescription
      static StringNAME
      Setting name "enabled", signifies that the event should be recorded.
    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      booleanvalue
      Returns true if by default the event should be enabled, false otherwise.
    • Field Detail

      • NAME

        static final String NAME
        Setting name "enabled", signifies that the event should be recorded.
    • Element Detail

      • value

        boolean value
        Returns true if by default the event should be enabled, false otherwise.
        Returns:
        true if by default the event should be enabled by default, false otherwise
        Default:
        true

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部