org.hibernate.search.backend.spi

## Interface OperationDispatcher

- All Known Implementing Classes:
    StreamingOperationDispatcher, TransactionalOperationDispatcher

      public interface OperationDispatcher

  A helper to dispatch a list of works to the appropriate index managers (initializing them as necessary), executing the `IndexManager.performOperations(List, org.hibernate.search.backend.IndexingMonitor)` or `IndexManager.performStreamOperation(LuceneWork, IndexingMonitor, boolean)` method.

  Intended for use by message consumers in the JMS/JGroups backends.

  Author:
    Yoann Rodiere
  Experimental
    This type is under active development. You should be prepared for incompatible changes in future releases.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `dispatch(List<LuceneWork> queue, IndexingMonitor monitor)`
    `void` | `dispatch(LuceneWork work, IndexingMonitor monitor)`

- - ### Method Detail

    - #### dispatch

          void dispatch(LuceneWork work,
                        IndexingMonitor monitor)

    - #### dispatch

          void dispatch(List<LuceneWork> queue,
                        IndexingMonitor monitor)

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved