Class InitializeBulkOperationItemsListener<CI extends CatalogItem>
java.lang.Object
com.broadleafcommerce.bulkoperations.messaging.InitializeBulkOperationItemsListener<CI>
@DataRouteByKey("bulkoperations")
public class InitializeBulkOperationItemsListener<CI extends CatalogItem>
extends Object
A listener that accepts a
BulkOpsInitializeItemsRequest
in order to initialize bulk
operation items.-
Constructor Summary
ConstructorDescriptionInitializeBulkOperationItemsListener
(InitializeBulkOperationItemsProperties initializeBulkOperationItemsProperties, CatalogProvider<CI> catalogProvider, SearchProvider<CI> searchProvider, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender sender, com.broadleafcommerce.bulk.v2.messaging.BulkOpsProcessRequestProducer processRequestProducer, BulkOperationsProviderProperties bulkOperationsProviderProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected BulkOperationsProviderProperties
protected CatalogProvider<CI>
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService
protected InitializeBulkOperationItemsProperties
protected com.broadleafcommerce.bulk.v2.messaging.BulkOpsProcessRequestProducer
protected SearchProvider<CI>
protected com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender
protected com.broadleafcommerce.common.extension.TypeFactory
void
listen
(org.springframework.messaging.Message<com.broadleafcommerce.bulk.v2.messaging.BulkOpsInitializeItemsRequest> message) protected void
processMessage
(@NonNull org.springframework.messaging.Message<com.broadleafcommerce.bulk.v2.messaging.BulkOpsInitializeItemsRequest> message) protected void
sendProcessBulkOperationRequest
(@NonNull com.broadleafcommerce.bulk.v2.messaging.BulkOpsInitializeItemsRequest request)
-
Constructor Details
-
InitializeBulkOperationItemsListener
public InitializeBulkOperationItemsListener(InitializeBulkOperationItemsProperties initializeBulkOperationItemsProperties, CatalogProvider<CI> catalogProvider, SearchProvider<CI> searchProvider, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender sender, com.broadleafcommerce.bulk.v2.messaging.BulkOpsProcessRequestProducer processRequestProducer, BulkOperationsProviderProperties bulkOperationsProviderProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
listen
@StreamListener("initializeItemsRequestInput") public void listen(org.springframework.messaging.Message<com.broadleafcommerce.bulk.v2.messaging.BulkOpsInitializeItemsRequest> message) -
processMessage
protected void processMessage(@NonNull @NonNull org.springframework.messaging.Message<com.broadleafcommerce.bulk.v2.messaging.BulkOpsInitializeItemsRequest> message) -
sendProcessBulkOperationRequest
protected void sendProcessBulkOperationRequest(@NonNull @NonNull com.broadleafcommerce.bulk.v2.messaging.BulkOpsInitializeItemsRequest request) -
getInitializeBulkOperationItemsProperties
-
getCatalogProvider
-
getSearchProvider
-
getIdempotentConsumptionService
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService() -
getSender
protected com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender getSender() -
getProcessRequestProducer
protected com.broadleafcommerce.bulk.v2.messaging.BulkOpsProcessRequestProducer getProcessRequestProducer() -
getBulkOperationsProviderProperties
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-