Class PurgeObsoleteSandboxDataHandler
java.lang.Object
com.broadleafcommerce.data.tracking.core.messaging.PurgeObsoleteSandboxDataHandler
A handler for scheduled jobs of type
PurgeObsoleteSandboxDataListener.PURGE_OBSOLETE_SANDBOX_DATA_JOBTYPE
that purges obsolete
sandbox records from all TrackableRepositories
.- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Constructor Summary
ConstructorDescriptionPurgeObsoleteSandboxDataHandler
(List<TrackableRepository<Trackable>> trackableRepositories, PurgeObsoleteSandboxDataConfigurationProperties configurationProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<TrackableRepository<Trackable>>
void
handle
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef purgeObsoleteSandboxDataJob) Simply callsTrackableRepository.purgeObsoleteSandboxData(Duration)
on allTrackableRepositories
.
-
Constructor Details
-
PurgeObsoleteSandboxDataHandler
public PurgeObsoleteSandboxDataHandler(@NonNull List<TrackableRepository<Trackable>> trackableRepositories, @NonNull PurgeObsoleteSandboxDataConfigurationProperties configurationProperties)
-
-
Method Details
-
handle
public void handle(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef purgeObsoleteSandboxDataJob) Simply callsTrackableRepository.purgeObsoleteSandboxData(Duration)
on allTrackableRepositories
.- Parameters:
purgeObsoleteSandboxDataJob
- the scheduled job event containing the details of thePurgeObsoleteSandboxDataListener.PURGE_OBSOLETE_SANDBOX_DATA_JOBTYPE
job
-
getTrackableRepositories
-
getConfigurationProperties
-