Issue Details (XML | Word | Printable)

Key: MULE-3413
Type: Sub-task Sub-task
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Dimitar Dimitrov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Mule
MULE-3390

Deliver the already queued notifications on disposal

Created: 29/May/08 01:14 AM   Updated: 19/Sep/08 12:47 AM
Component/s: Core: Concurrency / Threading
Affects Version/s: 2.0.1
Fix Version/s: 2.x Product Backlog

Time Tracking:
Not Specified

File Attachments: 1. Text File notifications.patch (5 kB)


Labels:
User impact: Low


 Description  « Hide
Make the notifications more deterministic.
  • No new notifications can be sent after dispose is called
  • The dispose() method blocks until all enqueued notifications are dispatched or until it times out
  • The run() method is guaranteed to exit after disposal - changed to queue.poll() method instead of take() in case the WorkManager forgets to interrupt the thread


 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Dimitar Dimitrov added a comment - 29/May/08 01:15 AM
The timeouts are not exposed. You might want to add getters setters, make them protected or move them to the config.