public class PruneRestingNotificationStatesHandler extends Object
PruneRestingNotificationStatesListener.PRUNE_RESTING_NOTIFICATION_STATES_JOBTYPE
that
prunes outdated resting notification states from all TrackableRepositories
.PruneRestingNotificationStatesListener
Constructor and Description |
---|
PruneRestingNotificationStatesHandler(List<TrackableRepository<Trackable>> trackableRepositories,
PruneRestingNotificationStatesConfigurationProperties configurationProperties) |
Modifier and Type | Method and Description |
---|---|
protected PruneRestingNotificationStatesConfigurationProperties |
getConfigurationProperties() |
protected List<TrackableRepository<Trackable>> |
getTrackableRepositories() |
void |
handle(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef pruneRestingNotificationStatesJob)
Simply calls
TrackableRepository.pruneRestingNotificationStates(Duration) on all
TrackableRepositories . |
public PruneRestingNotificationStatesHandler(@NonNull List<TrackableRepository<Trackable>> trackableRepositories, @NonNull PruneRestingNotificationStatesConfigurationProperties configurationProperties)
public void handle(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef pruneRestingNotificationStatesJob)
TrackableRepository.pruneRestingNotificationStates(Duration)
on all
TrackableRepositories
.pruneRestingNotificationStatesJob
- the scheduled job event containing the details of
the
PruneRestingNotificationStatesListener.PRUNE_RESTING_NOTIFICATION_STATES_JOBTYPE
job@NonNull protected List<TrackableRepository<Trackable>> getTrackableRepositories()
@NonNull protected PruneRestingNotificationStatesConfigurationProperties getConfigurationProperties()
Copyright © 2021. All rights reserved.