Interface NotificationStateAware


  • public interface NotificationStateAware
    A domain that keeps track of NotificationState
    Author:
    Jeff Fischer
    • Method Detail

      • getNotificationStates

        default List<NotificationState> getNotificationStates​(boolean fetch)
        Retrieve the message sending status for one or more NotificationState instances. Furthermore, specify whether the backing implementation should try to fetch associated NotificationState instances from the datastore, if applicable. By default, this simply delegates to getNotificationStates().
        Parameters:
        fetch - Whether or not attempt to fetch from the back datastore, if required.
        Returns:
        Retrieve the message sending status for one or more NotificationState instances.
      • findNotificationState

        default Optional<NotificationState> findNotificationState​(String messageProducerType)
        Looks up a NotificationState from the states within this collection
        Parameters:
        messageProducerType - an identifier for the message channel producing the message
        Returns:
        an optional containing the NotificationState for the given message producer or an empty optional otherwise