-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 5.3.1
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Core
-
Tags:
The current EventBundle iterator method triggers a reconnection (new core session) even though the listener is listing the events to tell whether or not it is interested in one of them.
It would be better to have a EventBundle#getFilteredEvent(List<String> interestingEventNames) that returns the events if the intersection of the bundle and and the list of interested event names is not empty and hence only reconnects them (creating the core session) is the list is not empty.
some event listeners that might benefit from this optimization:
- BinaryTextListener
- AbstractCommentListener