Class PruneRestingNotificationStatesAutoConfiguration
java.lang.Object
com.broadleafcommerce.data.tracking.core.messaging.autoconfigure.PruneRestingNotificationStatesAutoConfiguration
@Configuration
@ConditionalOnPropertyOrGroup(name="broadleaf.tracking.notification.prune.active",
group="broadleaf.basic.messaging.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(PruneRestingNotificationStatesConfigurationProperties.class)
@EnableBinding(PruneNotificationTriggeredJobEventConsumer.class)
public class PruneRestingNotificationStatesAutoConfiguration
extends Object
Configuration pertaining to handling the scheduled job for pruning acked or stopped
NotificationStates
from records.- Author:
- Samarth Dhruva (samarthd)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpruneRestingNotificationStatesHandler
(List<TrackableRepository<Trackable>> trackableRepositories, PruneRestingNotificationStatesConfigurationProperties configurationProperties) pruneRestingNotificationStatesListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, PruneRestingNotificationStatesHandler pruneRestingNotificationStatesHandler, com.broadleafcommerce.common.extension.data.DataRouteReference reference)
-
Constructor Details
-
PruneRestingNotificationStatesAutoConfiguration
public PruneRestingNotificationStatesAutoConfiguration()
-
-
Method Details
-
pruneRestingNotificationStatesListener
@Bean @ConditionalOnMissingBean public PruneRestingNotificationStatesListener pruneRestingNotificationStatesListener(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, PruneRestingNotificationStatesHandler pruneRestingNotificationStatesHandler, @Nullable com.broadleafcommerce.common.extension.data.DataRouteReference reference) -
pruneRestingNotificationStatesHandler
@Bean @ConditionalOnMissingBean public PruneRestingNotificationStatesHandler pruneRestingNotificationStatesHandler(@Autowired(required=false) List<TrackableRepository<Trackable>> trackableRepositories, PruneRestingNotificationStatesConfigurationProperties configurationProperties)
-