Class SyntheticNotificationStateAware

java.lang.Object
com.broadleafcommerce.data.tracking.jpa.messaging.SyntheticNotificationStateAware
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware

public class SyntheticNotificationStateAware extends Object implements com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
Artificial representation of a NotificationStateAware entity for the purpose of cycling through RetryHandler while at the same time not requiring a real JPA entity for NotificationStateAware. Instead, we rely solely on NotificationState instances. This is used as part of the detached durable message send flow.
See Also:
  • DetachedMessageSender
  • Constructor Details

    • SyntheticNotificationStateAware

      public SyntheticNotificationStateAware(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> states)
  • Method Details

    • getNotificationStates

      public List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> getNotificationStates()
      Specified by:
      getNotificationStates in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
    • setNotificationStates

      public void setNotificationStates(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> notificationStates)
      Specified by:
      setNotificationStates in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
    • getId

      public String getId()
    • setId

      public void setId(String id)