Class CustomerBatchIndexRequestHandler


  • public class CustomerBatchIndexRequestHandler
    extends com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
    Listens for a BatchIndexRequest message and launches a reindex. Leverages simple processing via the ReindexDelegationService.reindex(List) api.
    Author:
    Jeff Fischer
    • Field Detail

      • supportedSimpleTypeNames

        protected static final String[] supportedSimpleTypeNames
    • Constructor Detail

      • CustomerBatchIndexRequestHandler

        public CustomerBatchIndexRequestHandler​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                                com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService,
                                                com.broadleafcommerce.search.index.core.service.ReindexService reindexService,
                                                CustomerService customerService,
                                                int chunkSize)
    • Method Detail

      • hook

        @StreamListener("batchIndexRequestInputCustomer")
        public void hook​(String batchIndexRequest)
        Specified by:
        hook in class com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
      • processBatchIndexRequest

        public void processBatchIndexRequest​(com.fasterxml.jackson.databind.JsonNode batchIndexRequest)
        Specified by:
        processBatchIndexRequest in class com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
      • getSupportedSimpleTypeNames

        public String[] getSupportedSimpleTypeNames()
        Specified by:
        getSupportedSimpleTypeNames in class com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
      • getReindexDelegationService

        protected com.broadleafcommerce.search.index.core.service.ReindexDelegationService getReindexDelegationService()
      • getReindexService

        protected com.broadleafcommerce.search.index.core.service.ReindexService getReindexService()
      • getChunkSize

        protected int getChunkSize()