Package com.reallifedeveloper.common.application.notification
package com.reallifedeveloper.common.application.notification
Code to notify other systems about domain events that have occurred in this system and that have
been saved in an
EventStore.
The main class is NotificationService,
which contains methods to find historical events
(NotificationService.currentNotificationLog(int) and
NotificationService.notificationLog(NotificationLogId))
and to publish notifications to a messaging system
(NotificationService.publishNotifications(String)).
The Notification class is used to hold
information about the events that have occurred. To work with notifications in other systems, a
NotificationReader can be used to read
event information without having access to the event classes themselves.
- Author:
- RealLifeDeveloper
-
ClassDescriptionA notification is information about a domain event that has occurred, and that has been stored in an
EventStore.A factory forNotifications.A notification log holds a list ofNotifications, i.e., information about domain events that have occurred and have been stored in anEventStore.The ID of aNotificationLog, representing an interval ofNotificationsthat can be held in the log.A publisher of notifications.Ajava.lang.Runnablethat callsNotificationService.publishNotifications(String).A reader of serializedNotifications, that lets the user read information from the notification without having to deserialize it to a Java object.An application service to work withNotificationLogs.Keeps track of the most recently published message on a certain publication channel.Repository to work withPublishedMessageTrackerobjects.