JDK-6732037 : Event Service spec needs more detail about Executor use
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-07-31
  • Updated: 2011-04-19
  • Resolved: 2011-04-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b43Fixed
Related Reports
Relates :  
Description
The Event Service allows user-specified Executors to be supplied in a number of places.  But its specification does not contain all the information needed to know what kind of Executor might be appropriate:

* For the distributingExecutor parameter to the EventClient constructor (used to call handleNotification on listeners), it should be specified that the EventClient will only submit one job at a time to this Executor.  So users don't have to worry about listeners being thread-safe with respect to one another, or about notifications being handled out of order because of parallelism.

* Likewise for the leaseScheduler parameter it might be specified that the EventClient will only submit one job at a time, though this is probably obvious.

* For the executor parameter to FetchingEventRelay, it should again be specified that the FetchingEventRelay will only submit one job at a time, and more importantly that the behaviour will be unspecified if Executor.execute throws an exception, in particular RejectedExecutionException.

Comments
EVALUATION Make the suggested changes.
31-07-2008