A Runnable for adding an
IndexRequest
or
DeleteRequest
to a
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.add(ActionRequest)
is invoked.
That worker thread should be the same worker thread running instances of
BulkProcessorFlusher
.
This is achieved by using a single thread pool in
SearchIndexServiceImpl
to run instances of
this Runnable which are created in
SearchIndexServiceImpl
.