Class PersistenceMessageNotificationHandler
- java.lang.Object
-
- com.broadleafcommerce.common.messaging.notification.DefaultNotificationHandler
-
- com.broadleafcommerce.common.messaging.PersistenceMessageNotificationHandler
-
- All Implemented Interfaces:
NotificationHandler,org.springframework.core.Ordered
public class PersistenceMessageNotificationHandler extends DefaultNotificationHandler
TheNotificationHandlerimplementation specifically for sendingPersistenceMessageviaPersistenceProducer.- Author:
- Samarth Dhruva (samarthd)
-
-
Constructor Summary
Constructors Constructor Description PersistenceMessageNotificationHandler(ChannelSupplier persistenceProducerSupplier, DurableNotificationProperties properties, List<IgnoredNotificationStateRepository> ignoredRepositories, MessageFactory<?> messageFactory, MessageSerializationHelper helper, List<PersistenceMessageAckedHandler> persistenceMessageAckedHandlers, com.broadleafcommerce.common.extension.data.DataRouteReference dataRouteReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterSuccessfulAcknowledgement(@NonNull Object nativeId, @NonNull NotificationStateAware notificationStateAware, NotificationStateRepository repository)Invokes eachPersistenceMessageAckedHandler.protected List<PersistenceMessageAckedHandler>getHandlersInScope(Object persistedDomainEntity)protected List<PersistenceMessageAckedHandler>getPersistenceMessageAckedHandlers()-
Methods inherited from class com.broadleafcommerce.common.messaging.notification.DefaultNotificationHandler
createMessageSafely, createMessageSupplier, getWaitTimeExp, handle, notify, sendRemote, sendRemoteMessageSafely, 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 Detail
-
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 Detail
-
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 thenotificationStateAwareentitynotificationStateAware- the containing entity of the notification state for which a message was successfully sentrepository- the repository corresponding to thenotificationStateAwareentity
-
getHandlersInScope
protected List<PersistenceMessageAckedHandler> getHandlersInScope(Object persistedDomainEntity)
-
getPersistenceMessageAckedHandlers
protected List<PersistenceMessageAckedHandler> getPersistenceMessageAckedHandlers()
-
-