Class ElasticSearchInlineListener

java.lang.Object
org.nuxeo.elasticsearch.commands.IndexingCommandsStacker
org.nuxeo.elasticsearch.listener.ElasticSearchInlineListener
All Implemented Interfaces:
javax.transaction.Synchronization, EventListener

public class ElasticSearchInlineListener extends IndexingCommandsStacker implements EventListener, javax.transaction.Synchronization
Synchronous Event listener used to record indexing command, submitted after commit completion.
  • Field Details

  • Constructor Details

    • ElasticSearchInlineListener

      public ElasticSearchInlineListener()
  • Method Details

    • getAllCommands

      protected Map<String,IndexingCommands> getAllCommands()
      Specified by:
      getAllCommands in class IndexingCommandsStacker
    • isSyncIndexingByDefault

      protected boolean isSyncIndexingByDefault()
      Specified by:
      isSyncIndexingByDefault in class IndexingCommandsStacker
    • handleEvent

      public void handleEvent(Event event)
      Description copied from interface: EventListener
      Handle the given event. The listener can cancel the event by calling Event.cancel()
      Specified by:
      handleEvent in interface EventListener
      Parameters:
      event - the event
    • beforeCompletion

      public void beforeCompletion()
      Specified by:
      beforeCompletion in interface javax.transaction.Synchronization
    • afterCompletion

      public void afterCompletion(int status)
      Specified by:
      afterCompletion in interface javax.transaction.Synchronization
    • registerSynchronization

      protected boolean registerSynchronization(javax.transaction.Synchronization sync)