Interface PersistenceMessageAckedHandler
- All Superinterfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware,org.springframework.core.Ordered
public interface PersistenceMessageAckedHandler
extends org.springframework.core.Ordered, com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
Every component implementing this interface is injected and invoked by
PersistenceMessageNotificationHandler.afterSuccessfulAcknowledgement(Object, NotificationStateAware, NotificationStateRepository)
following successful acknowledgement of a NotificationState for a
PersistenceMessage.- Author:
- Samarth Dhruva (samarthd)
-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
ALL_MATCHFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSuccessfulAcknowledgement(Object nativeId, NotificationStateAware notificationStateAware, NotificationStateRepository repository) A hook point intended to allow implementations to perform some behavior after aPersistenceMessagehas been successfully sent and theNotificationStatehas been marked as acknowledged.default intgetOrder()Methods inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
getDataRoutePartition
-
Method Details
-
afterSuccessfulAcknowledgement
void afterSuccessfulAcknowledgement(@NonNull Object nativeId, @NonNull NotificationStateAware notificationStateAware, @NonNull NotificationStateRepository repository) A hook point intended to allow implementations to perform some behavior after aPersistenceMessagehas been successfully sent and theNotificationStatehas been marked as acknowledged.Should not directly mutate the given
notificationStateAwareinstance.- Parameters:
nativeId- the native id of thenotificationStateAwareentitynotificationStateAware- the containing entity of the notification state for which the persistence message was successfully sentrepository- the repository corresponding to thenotificationStateAwareentity
-
getOrder
default int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-