Class PersistenceMessageNotificationHandler
java.lang.Object
com.broadleafcommerce.common.messaging.notification.DefaultNotificationHandler
com.broadleafcommerce.common.messaging.PersistenceMessageNotificationHandler
- All Implemented Interfaces:
NotificationHandler
,org.springframework.core.Ordered
The
NotificationHandler
implementation specifically for sending
PersistenceMessage
via PersistenceProducer
.- Author:
- Samarth Dhruva (samarthd)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceMessageNotificationHandler
(ChannelSupplier persistenceProducerSupplier, DurableNotificationProperties properties, List<IgnoredNotificationStateRepository> ignoredRepositories, MessageFactory<?> messageFactory, MessageSerializationHelper helper, List<PersistenceMessageAckedHandler> persistenceMessageAckedHandlers, com.broadleafcommerce.common.extension.data.DataRouteReference dataRouteReference) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterSuccessfulAcknowledgement
(@NonNull Object nativeId, @NonNull NotificationStateAware notificationStateAware, NotificationStateRepository repository) Invokes eachPersistenceMessageAckedHandler
.protected List<PersistenceMessageAckedHandler>
getHandlersInScope
(Object persistedDomainEntity) protected List<PersistenceMessageAckedHandler>
Methods inherited from class com.broadleafcommerce.common.messaging.notification.DefaultNotificationHandler
createMessageSafely, createMessageSupplier, getBeanFactory, getChannelModifier, getEnvironment, getWaitTimeExp, handle, notify, sendRemote, sendRemoteMessageSafely, setBeanFactory, setChannelModifierProperties, setEnvironment, unwrapNotificationState
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.NotificationHandler
getOrder
-
Constructor Details
-
PersistenceMessageNotificationHandler
public PersistenceMessageNotificationHandler(ChannelSupplier persistenceProducerSupplier, DurableNotificationProperties properties, List<IgnoredNotificationStateRepository> ignoredRepositories, MessageFactory<?> messageFactory, MessageSerializationHelper helper, @Nullable List<PersistenceMessageAckedHandler> persistenceMessageAckedHandlers, @Nullable com.broadleafcommerce.common.extension.data.DataRouteReference dataRouteReference)
-
-
Method Details
-
afterSuccessfulAcknowledgement
public void afterSuccessfulAcknowledgement(@NonNull @NonNull @NonNull Object nativeId, @NonNull @NonNull @NonNull NotificationStateAware notificationStateAware, @NonNull NotificationStateRepository repository) Invokes eachPersistenceMessageAckedHandler
.- Parameters:
nativeId
- the native id of thenotificationStateAware
entitynotificationStateAware
- the containing entity of the notification state for which a message was successfully sentrepository
- the repository corresponding to thenotificationStateAware
entity
-
getHandlersInScope
-
getPersistenceMessageAckedHandlers
-