Class PurgeObsoleteSandboxDataListener

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

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

  • Constructor Details

    • PurgeObsoleteSandboxDataListener

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

    • listen

      @StreamListener("triggeredJobEventInputPurgeSandbox") 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
    • purge

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

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

      @NonNull protected PurgeObsoleteSandboxDataHandler getHandler()
    • getReference

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