Class PruneRestingNotificationStatesListener

java.lang.Object
com.broadleafcommerce.data.tracking.core.messaging.PruneRestingNotificationStatesListener

public class PruneRestingNotificationStatesListener extends Object
A listener that accepts triggered scheduled job events of type PRUNE_RESTING_NOTIFICATION_STATES_JOBTYPE and delegates to PruneRestingNotificationStatesHandler to perform the appropriate behavior.
Author:
Samarth Dhruva (samarthd)
  • Field Details

    • PRUNE_RESTING_NOTIFICATION_STATES_JOBTYPE

      public static final String PRUNE_RESTING_NOTIFICATION_STATES_JOBTYPE
      See Also:
  • Constructor Details

    • PruneRestingNotificationStatesListener

      public PruneRestingNotificationStatesListener(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, PruneRestingNotificationStatesHandler handler, @Nullable com.broadleafcommerce.common.extension.data.DataRouteReference reference)
  • Method Details

    • listen

      @StreamListener("triggeredJobEventInputPruneNotification") public void listen(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message)
    • findTrackingSupportingRoutes

      protected List<com.broadleafcommerce.common.extension.data.DataRouteSupporting> findTrackingSupportingRoutes()
      Identifies all data routes that support tracking domain
      Returns:
      all data routes that support tracking domain
    • prune

      protected void prune(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message)
    • getIdempotentConsumptionService

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

      protected PruneRestingNotificationStatesHandler getHandler()
    • getReference

      @Nullable protected com.broadleafcommerce.common.extension.data.DataRouteReference getReference()