[cdi-dev] On @Observes for async events
Jozef Hartinger
jharting at redhat.com
Wed Mar 18 08:15:39 EDT 2015
On 03/18/2015 11:16 AM, Romain Manni-Bucau wrote:
> sequentializing them arbitrarily just makes it not async anymore
the event firing thread won't wait for event delivery so it is still async
> (+ think to the case you dont really have priorities you are just
> breaking the whole concept).
If you do not have priorities (or they are the same) then it is most
likely fine to notify the observers in parallel. If you however do have
priorities then it makes sense IMO to take them into account. Doing
otherwise just complicates the entire concept by adding an artificial
constraint.
More information about the cdi-dev
mailing list