Class PurgeObsoleteSandboxDataListener
java.lang.Object
com.broadleafcommerce.data.tracking.core.messaging.PurgeObsoleteSandboxDataListener
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 Summary
-
Constructor Summary
ConstructorDescriptionPurgeObsoleteSandboxDataListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, PurgeObsoleteSandboxDataHandler handler, com.broadleafcommerce.common.extension.data.DataRouteReference reference) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<com.broadleafcommerce.common.extension.data.DataRouteSupporting>
Identifies all data routes that support tracking domainprotected PurgeObsoleteSandboxDataHandler
protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService
protected com.broadleafcommerce.common.extension.data.DataRouteReference
void
listen
(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message) protected void
purge
(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message)
-
Field Details
-
PURGE_OBSOLETE_SANDBOX_DATA_JOBTYPE
- See Also:
-
-
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
-
getReference
@Nullable protected com.broadleafcommerce.common.extension.data.DataRouteReference getReference()
-