Class SolrCustomerIndexWorker

  • All Implemented Interfaces:
    com.broadleafcommerce.search.index.core.IndexableTypeAware, Runnable

    public class SolrCustomerIndexWorker
    extends com.broadleafcommerce.search.index.core.worker.AbstractWorker<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SolrCustomerIndexWorker​(@NonNull com.broadleafcommerce.search.index.core.ProcessStateService processStateService, @NonNull Semaphore semaphore, @NonNull com.broadleafcommerce.search.api.type.IndexableType type, @NonNull com.broadleafcommerce.search.index.core.queue.ReindexQueue<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>> queue, @NonNull com.broadleafcommerce.search.index.customer.service.CustomerService customerService, @NonNull com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument> documentBuilder, @NonNull com.broadleafcommerce.search.provider.solr.SolrIndexProvider solrIndexProvider, @NonNull com.broadleafcommerce.search.provider.solr.SolrCollectionResolver collectionResolver, com.broadleafcommerce.common.extension.data.DataRouteSupporting searchSource, long waitTime, int maxTries)  
    • Constructor Detail

      • SolrCustomerIndexWorker

        protected SolrCustomerIndexWorker​(@NonNull
                                          @NonNull com.broadleafcommerce.search.index.core.ProcessStateService processStateService,
                                          @NonNull
                                          @NonNull Semaphore semaphore,
                                          @NonNull
                                          @NonNull com.broadleafcommerce.search.api.type.IndexableType type,
                                          @NonNull
                                          @NonNull com.broadleafcommerce.search.index.core.queue.ReindexQueue<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>> queue,
                                          @NonNull
                                          @NonNull com.broadleafcommerce.search.index.customer.service.CustomerService customerService,
                                          @NonNull
                                          @NonNull com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument> documentBuilder,
                                          @NonNull
                                          @NonNull com.broadleafcommerce.search.provider.solr.SolrIndexProvider solrIndexProvider,
                                          @NonNull
                                          @NonNull com.broadleafcommerce.search.provider.solr.SolrCollectionResolver collectionResolver,
                                          com.broadleafcommerce.common.extension.data.DataRouteSupporting searchSource,
                                          long waitTime,
                                          int maxTries)
    • Method Detail

      • executeInternal

        protected int executeInternal​(com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String> queueEntry)
                               throws com.broadleafcommerce.search.api.SearchIndexException
        Specified by:
        executeInternal in class com.broadleafcommerce.search.index.core.worker.AbstractWorker<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>>
        Throws:
        com.broadleafcommerce.search.api.SearchIndexException
      • getCustomerService

        protected com.broadleafcommerce.search.index.customer.service.CustomerService getCustomerService()
      • getDocumentBuilder

        protected com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument> getDocumentBuilder()
      • getSolrIndexProvider

        protected com.broadleafcommerce.search.provider.solr.SolrIndexProvider getSolrIndexProvider()
      • getCollectionResolver

        protected com.broadleafcommerce.search.provider.solr.SolrCollectionResolver getCollectionResolver()