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 byPersistenceMessageNotificationHandler.afterSuccessfulAcknowledgement(Object, NotificationStateAware, NotificationStateRepository)
following successful acknowledgement of aNotificationState
for aPersistenceMessage
.- Author:
- Samarth Dhruva (samarthd)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
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()
-
-
-
Method Detail
-
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
-
-