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 Type
    Method
    Description
    void
    A hook point intended to allow implementations to perform some behavior after a PersistenceMessage has been successfully sent and the NotificationState has been marked as acknowledged.
    default int
     

    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 a PersistenceMessage has been successfully sent and the NotificationState has been marked as acknowledged.

      Should not directly mutate the given notificationStateAware instance.

      Parameters:
      nativeId - the native id of the notificationStateAware entity
      notificationStateAware - the containing entity of the notification state for which the persistence message was successfully sent
      repository - the repository corresponding to the notificationStateAware entity
    • getOrder

      default int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered