Does fireEvent() guarantee the order of event handling?
Are the events handled concurrently or sequentially?
I assume you’re referring to the fireEvent
method in the Component
or ComponentUtil
classes in Java.
Those methods are synchronous so that all registered listeners will be invoked in the order they were added and the method doesn’t return until all listeners have been invoked. This is still only the case within the confines of a single user’s session. If fireEvent
is invoked concurrently for different components in different user sessions, then the ordering between those separate sessions will be arbitrary.