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 Summary
ConstructorDescriptionSyntheticNotificationStateAware
(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> states) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState>
void
void
setNotificationStates
(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> notificationStates) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState, getNotificationStates
-
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 interfacecom.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
-
setNotificationStates
public void setNotificationStates(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> notificationStates) - Specified by:
setNotificationStates
in interfacecom.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
-
getId
-
setId
-