Class ProductBatchIndexRequestHandler
java.lang.Object
com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
com.broadleafcommerce.search.index.catalog.messaging.handler.ProductBatchIndexRequestHandler
public class ProductBatchIndexRequestHandler
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
ConstructorsConstructorDescriptionProductBatchIndexRequestHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.service.ReindexService reindexService, CatalogService catalogService, int chunkSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected CatalogServiceprotected intprotected com.broadleafcommerce.search.index.core.service.ReindexDelegationServiceprotected com.broadleafcommerce.search.index.core.service.ReindexServiceString[]voidvoidprocessBatchIndexRequest(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
-
ProductBatchIndexRequestHandler
public ProductBatchIndexRequestHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.service.ReindexService reindexService, CatalogService catalogService, int chunkSize)
-
-
Method Details
-
hook
- 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
- Specified by:
getSupportedSimpleTypeNamesin classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
getReindexDelegationService
protected com.broadleafcommerce.search.index.core.service.ReindexDelegationService getReindexDelegationService() -
getCatalogService
-
getReindexService
protected com.broadleafcommerce.search.index.core.service.ReindexService getReindexService() -
getChunkSize
protected int getChunkSize()
-