Interface ElasticsearchParallelWorkOrchestrator

All Known Implementing Classes:
ElasticsearchSimpleWorkOrchestrator

public interface ElasticsearchParallelWorkOrchestrator
A thread-safe component planning the execution of works in parallel, without any consideration for the order they were submitted in.

Parallel orchestrators are suitable when the client takes the responsibility of submitting works as needed to implement ordering: if work #2 must be executed after work #1, the client will take care of waiting until #1 is done before he submits #2.

With a parallel orchestrator:

  • Works are executed in unpredictable order, irrespective of the order they were submitted in.
  • Two submitted works may be sent together in a single bulk request.
  • The application will not wait for already-submitted works to finish when shutting down.