Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17157

Allow to define a listener to be executed asynchronously

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.10.3
    • Fix Version/s: None
    • Component/s: Observation
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      It is currently possible to define custom listener for various kind of events, but apparently those listeners are always executed synchronously by the Observation Manager. We can of course implement them so they perform their task in a new thread once they are called, but it looks like a generic need to be able to define a Listener that would be executed asynchronously.

      For example, we have a listener executed in case of page creation that needs to communicate with another server. It currently slows down a lot the page creation because it's executed synchronously: we could benefit directly of having an asynchronous execution of this listener by default.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                surli Simon Urli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: