Class InventoryStockChangeMessageListener


  • @DataRouteByKey("indexer")
    public class InventoryStockChangeMessageListener
    extends Object
    Component to receive stock change notifications and update the index where necessary.
    Author:
    Kelly Tisdell (ktisdell)
    • Constructor Detail

      • InventoryStockChangeMessageListener

        public InventoryStockChangeMessageListener​(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService,
                                                   InventoryAvailabilityService inventoryAvailabilityService)
    • Method Detail

      • listen

        @StreamListener("stockChangeNotificationMessageInput")
        public void listen​(org.springframework.messaging.Message<com.broadleafcommerce.search.catalog.core.domain.ConsolidatedInventoryAvailability> message)
      • processMessage

        protected void processMessage​(@NonNull
                                      @NonNull org.springframework.messaging.Message<com.broadleafcommerce.search.catalog.core.domain.ConsolidatedInventoryAvailability> message)
      • handleException

        protected void handleException​(@NonNull
                                       @NonNull org.springframework.messaging.Message<com.broadleafcommerce.search.catalog.core.domain.ConsolidatedInventoryAvailability> message,
                                       Exception e)
      • getIdempotentConsumptionService

        protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService()