Class BulkIndexRequestExecutorImpl

java.lang.Object
com.flowable.indexing.job.impl.BulkIndexRequestExecutorImpl
All Implemented Interfaces:
BulkIndexRequestExecutor

public class BulkIndexRequestExecutorImpl extends Object implements BulkIndexRequestExecutor
  • Field Details

    • objectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • elasticsearchCompatibility

      protected ElasticsearchCompatibility elasticsearchCompatibility
    • defaultNrOfRetries

      protected int defaultNrOfRetries
  • Constructor Details

    • BulkIndexRequestExecutorImpl

      public BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility, int defaultNrOfRetries)
  • Method Details

    • execute

      public void execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob)
      Specified by:
      execute in interface BulkIndexRequestExecutor
    • handleBulkResponse

      protected void handleBulkResponse(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob, BulkRequest bulkRequest, ElasticsearchBulkResponse bulkResponse)
    • shouldScheduleNewHistoryJobForRequestsInError

      protected boolean shouldScheduleNewHistoryJobForRequestsInError(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests)
    • scheduleNewHistoryJobForRequestsInError

      protected void scheduleNewHistoryJobForRequestsInError(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests)
    • addHistoricData

      protected void addHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getJobServiceConfiguration

      protected org.flowable.job.service.JobServiceConfiguration getJobServiceConfiguration(String scopeType, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)