Task #3801: Improve EventBus implementation
Custom routings for events
In some cases as ie. for events sent between cluster nodes to pass informations from one user session to other user session of same user it is important to address this event to particular node in cluster as if we have user
email@example.com connected to nodes
node1 with resource
res1 and to
node2 with resource
res2 in case of MessageCarbons we need to notify
res2 that on
res1 message carbons were enabled. In this case there is no need to forward this event to every cluster node as user session is only on nodes
node1 and @node2@.
To do that it would be good to create
RoutingEventHandler which could listen for particular event before event is sent and return list/set of nodes to which event should be forwarded.
Issue #3803 - implementation of support for custom modifications for delivery of events to external systems (ie. to other cluster nodes)
Issue #3803 - change in UserSessionEvent to allow to send it directly to single user session (session for particular resource)