public class BulkProcessorFlusher extends org.sonatype.goodies.common.ComponentSupport implements Callable<Void>
BulkProcessor
.
The intention is for this Runnable to be run on a single dedicated worker thread so that only that thread
is contesting for the BulkProcessor's MutEx when BulkProcessor.flush()
is invoked.
That worker thread should be the same worker thread running instances of BulkProcessorUpdater
.
This is achieved by using a single thread pool in SearchIndexServiceImpl
to run instances of
this Runnable which are created in SearchIndexServiceImpl
.Constructor and Description |
---|
BulkProcessorFlusher(org.elasticsearch.action.bulk.BulkProcessor bulkProcessor) |
Modifier and Type | Method and Description |
---|---|
Void |
call() |
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.