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_MATCH
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterSuccessfulAcknowledgement
(Object nativeId, NotificationStateAware notificationStateAware, NotificationStateRepository repository) A hook point intended to allow implementations to perform some behavior after aPersistenceMessage
has been successfully sent and theNotificationState
has been marked as acknowledged.default int
getOrder()
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 aPersistenceMessage
has been successfully sent and theNotificationState
has been marked as acknowledged.Should not directly mutate the given
notificationStateAware
instance.- Parameters:
nativeId
- the native id of thenotificationStateAware
entitynotificationStateAware
- the containing entity of the notification state for which the persistence message was successfully sentrepository
- the repository corresponding to thenotificationStateAware
entity
-
getOrder
default int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-