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

Timer service unnecessarily hard to use

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 6
    • core-svc

      The Timer service (javax.management.timer) is unnecessarily hard to use. First of all, the addNotification method requires you to supply a notification type, and most users neither know nor care what to put there. In fact you can probably get away with putting null there, but the documentation should say that explicitly, and it should suggest a "jmx.something" string that you can use as well.

      Secondly, it would be good if the documentation explained how to have different listeners for different notifications, when you have several notifications triggered off the same timer. See <http://forum.java.sun.com/thread.jspa?forumID=537&threadID=749048>.

            emcmanus Eamonn McManus
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: