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.DataRoutePartitionAwareEvery component implementing this interface is injected and invoked byPersistenceMessageNotificationHandler.afterSuccessfulAcknowledgement(Object, NotificationStateAware, NotificationStateRepository)following successful acknowledgement of aNotificationStatefor aPersistenceMessage.- Author:
- Samarth Dhruva (samarthd)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidafterSuccessfulAcknowledgement(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()
-
-
-
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 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
-
-