Class CustomerBatchIndexRequestHandler
- java.lang.Object
-
- com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
- com.broadleafcommerce.search.index.customer.messaging.handler.CustomerBatchIndexRequestHandler
-
public class CustomerBatchIndexRequestHandler extends com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandlerListens for aBatchIndexRequestmessage and launches a reindex. Leverages simple processing via theReindexDelegationService.reindex(List)api.- Author:
- Jeff Fischer
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]supportedSimpleTypeNames
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetChunkSize()protected CustomerServicegetCustomerService()protected com.broadleafcommerce.search.index.core.service.ReindexDelegationServicegetReindexDelegationService()protected com.broadleafcommerce.search.index.core.service.ReindexServicegetReindexService()String[]getSupportedSimpleTypeNames()voidhook(String batchIndexRequest)voidprocessBatchIndexRequest(com.fasterxml.jackson.databind.JsonNode batchIndexRequest)
-
-
-
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:
hookin classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
processBatchIndexRequest
public void processBatchIndexRequest(com.fasterxml.jackson.databind.JsonNode batchIndexRequest)
- Specified by:
processBatchIndexRequestin classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
getSupportedSimpleTypeNames
public String[] getSupportedSimpleTypeNames()
- Specified by:
getSupportedSimpleTypeNamesin classcom.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()
-
getCustomerService
protected CustomerService getCustomerService()
-
getChunkSize
protected int getChunkSize()
-
-