[cdi-dev] [JBoss JIRA] (CDI-698) Ordering of Async Events
Martin Kouba (JIRA)
issues at jboss.org
Wed Mar 22 05:39:00 EDT 2017
[ https://issues.jboss.org/browse/CDI-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13382147#comment-13382147 ]
Martin Kouba commented on CDI-698:
----------------------------------
In Weld 3.0.0.CR2 when an event is fired asynchronously all observer methods are scheduled to be notified synchronously in a separate thread, ie. at most one thread is used for a specific notification. Also ordering should work there.
If we decide to standardize this we should use {{javax.enterprise.event.NotificationOptions}} which was designed exactly for this kind of configuration.
> Ordering of Async Events
> ------------------------
>
> Key: CDI-698
> URL: https://issues.jboss.org/browse/CDI-698
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Affects Versions: 2.0 .Final
> Reporter: John Ament
>
> Async Events don't presently support ordering. When the number of observers grows, and is larger than the number of available threads, I may wan to have events follow a certain order, to ensure my more important observers are seen first.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the cdi-dev
mailing list