Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-5025

Make EventBundle API natural to reconnect only events the listener is interested in

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.3.1
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Core

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              ogrisel Olivier Grisel
              Reporter:
              ogrisel Olivier Grisel
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: