Platform Explorer / Nuxeo Platform LTS 2016 8.10

Service org.nuxeo.ecm.core.event.EventServiceAdmin


This service can be used to administer the way the Events are processed.

This can be useful, for example, when doing bulk import or doing tests.

When doing a bug bulk import, it’s usually not a good idea to let async listeners run in the default way. The problem is that import threads will go faster that the async processing threads, and it will result in an accumulation of async events waiting to be processed. In order to avoid that you can activate the bulk mode. In this mode, on commit time, all async listeners will be executed in the same thread and in the same transaction just after the import commit occurs and before the importer can start a new transaction.

For testing your listener, and see what impact they have on performances, you can use EventServiceAdmin service to :

  • activate / desactivae some listeners
  • activate counters that will track how much time is spend in each listener



Click for full Javadoc