Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6759619

Clarify what EventClient.getEventClientNotificationInfo does

XMLWordPrintable

    • b40
    • generic
    • generic
    • Verified

      As of JDK 7 b37 the EventClient method getEventClientNotificationInfo is documented that way:

          Get the types of notification that an EventClient can send to listeners added with addEventClientListener.

          Returns:
              Types of notification emitted by this EventClient.
          See Also:
              FAILED, NONFATAL, NOTIFS_LOST

      When you print the sole entry present in the returned array you read:

      javax.management.MBeanNotificationInfo[description=, name=javax.management.Notification, notifTypes=[jmx.event.service.failed, jmx.event.service.notifs.lost]]

      1. ==> why only 2 values for notifTypes as apparently 3 are possible ? Is it a documentation issue ? an implementation one ? did I miss something ?
      2. ==> why an empty description ? I've the feeling an high level sentence is worth reading.

            emcmanus Eamonn McManus
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: