Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEARCH-2764 Add a parallel orchestrator for streamed work
This could lead to better performance with large Elasticsearch connection pools when works affect multiple indexes.
- Loading branch information
Showing
6 changed files
with
596 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...g/hibernate/search/elasticsearch/processor/impl/BarrierElasticsearchWorkOrchestrator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Hibernate Search, full-text search for your domain model | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.search.elasticsearch.processor.impl; | ||
|
||
/** | ||
* An {@link ElasticsearchWorkOrchestrator} providing a synchronization barrier | ||
* through its {@link #awaitCompletion()} method. | ||
* | ||
* @author Yoann Rodiere | ||
*/ | ||
public interface BarrierElasticsearchWorkOrchestrator extends ElasticsearchWorkOrchestrator { | ||
|
||
/** | ||
* Block until there is no more work to execute. | ||
* <p> | ||
* N.B. if more works are submitted in the meantime, this might delay the wait. | ||
* | ||
* @throws InterruptedException if thread interrupted while waiting | ||
*/ | ||
void awaitCompletion() throws InterruptedException; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.