org.hibernate.search.elasticsearch.processor.impl

## Interface BarrierElasticsearchWorkOrchestrator

- All Superinterfaces:
    AutoCloseable, ElasticsearchWorkOrchestrator

      public interface BarrierElasticsearchWorkOrchestrator
      extends ElasticsearchWorkOrchestrator, AutoCloseable

  An `ElasticsearchWorkOrchestrator` providing a synchronization barrier through its `awaitCompletion()` method.
  Author:
    Yoann Rodiere

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `awaitCompletion()` Block until there is no more work to execute.
    `void` | `close()`

    - ### Methods inherited from interface org.hibernate.search.elasticsearch.processor.impl.ElasticsearchWorkOrchestrator

      `submit, submit`

- - ### Method Detail

    - #### awaitCompletion

          void awaitCompletion()
                        throws InterruptedException

      Block until there is no more work to execute.

      N.B. if more works are submitted in the meantime, this might delay the wait.

      Throws:
        `InterruptedException` - if thread interrupted while waiting

    - #### close

          void close()

      Specified by:
        `close` in interface `AutoCloseable`

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