public class TransportBulkAction extends HandledTransportAction<BulkRequest,BulkResponse>
TransportShardBulkAction
for shard-level bulk executionactionName, indexNameExpressionResolver, taskManager, threadPool
deprecationLogger, logger, settings
Constructor and Description |
---|
TransportBulkAction(Settings settings,
ThreadPool threadPool,
TransportService transportService,
ClusterService clusterService,
IngestService ingestService,
TransportShardBulkAction shardBulkAction,
TransportCreateIndexAction createIndexAction,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
AutoCreateIndex autoCreateIndex) |
TransportBulkAction(Settings settings,
ThreadPool threadPool,
TransportService transportService,
ClusterService clusterService,
IngestService ingestService,
TransportShardBulkAction shardBulkAction,
TransportCreateIndexAction createIndexAction,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
AutoCreateIndex autoCreateIndex,
java.util.function.LongSupplier relativeTimeProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(BulkRequest bulkRequest,
ActionListener<BulkResponse> listener) |
protected void |
doExecute(Task task,
BulkRequest bulkRequest,
ActionListener<BulkResponse> listener) |
void |
executeBulk(BulkRequest bulkRequest,
ActionListener<BulkResponse> listener)
This method executes the
BulkRequest and calls the given listener once the request returns. |
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public TransportBulkAction(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterService clusterService, IngestService ingestService, TransportShardBulkAction shardBulkAction, TransportCreateIndexAction createIndexAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, AutoCreateIndex autoCreateIndex)
public TransportBulkAction(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterService clusterService, IngestService ingestService, TransportShardBulkAction shardBulkAction, TransportCreateIndexAction createIndexAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, AutoCreateIndex autoCreateIndex, java.util.function.LongSupplier relativeTimeProvider)
protected final void doExecute(BulkRequest bulkRequest, ActionListener<BulkResponse> listener)
doExecute
in class TransportAction<BulkRequest,BulkResponse>
protected void doExecute(Task task, BulkRequest bulkRequest, ActionListener<BulkResponse> listener)
doExecute
in class TransportAction<BulkRequest,BulkResponse>
public void executeBulk(BulkRequest bulkRequest, ActionListener<BulkResponse> listener)
BulkRequest
and calls the given listener once the request returns.
This method will not create any indices even if auto-create indices is enabled.