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.AbstractBatchIndexRequestHandler
Listens for a
BatchIndexRequest
message and launches a reindex. Leverages simple
processing via the ReindexDelegationService.reindex(List)
api.- Author:
- Jeff Fischer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomerBatchIndexRequestHandler
(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
Modifier and TypeMethodDescriptionprotected int
protected CustomerService
protected com.broadleafcommerce.search.index.core.service.ReindexDelegationService
protected com.broadleafcommerce.search.index.core.service.ReindexService
String[]
void
void
processBatchIndexRequest
(com.fasterxml.jackson.databind.JsonNode batchIndexRequest) Methods inherited from class com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
addNotFoundIndexables, getObjectMapper, getTypeFactory, handle, isValidType, setTypeFactory
-
Field Details
-
supportedSimpleTypeNames
-
-
Constructor Details
-
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 Details
-
hook
- Specified by:
hook
in classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
processBatchIndexRequest
public void processBatchIndexRequest(com.fasterxml.jackson.databind.JsonNode batchIndexRequest) - Specified by:
processBatchIndexRequest
in classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
getSupportedSimpleTypeNames
- Specified by:
getSupportedSimpleTypeNames
in 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
-
getChunkSize
protected int getChunkSize()
-