Interface Notifier
-
- All Known Implementing Classes:
EmailNotifier
public interface NotifierA Notifier is responsible for sending notifications to a destination or set of destinations. Each notifier will handle distributing notifications over a particular notification channel. The channel handled by the notifier can be determined by asking for the notification type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NotificationTypegetNotificationType()Indicates the type of notifications sent by this notifiervoidinitialize(NotificationConfig notificationConfig)Initializes the Notifier to be able to set up connects to begin performing notification operations.voidnotify(String subject, String message, String... destinations)Sends a notification to a destinationvoidnotifyAdmins(String subject, String message)Sends a notification to configured admins
-
-
-
Method Detail
-
initialize
void initialize(NotificationConfig notificationConfig)
Initializes the Notifier to be able to set up connects to begin performing notification operations.- Parameters:
notificationConfig-
-
getNotificationType
NotificationType getNotificationType()
Indicates the type of notifications sent by this notifier- Returns:
- the channel type of this notifier
-
notify
void notify(String subject, String message, String... destinations)
Sends a notification to a destination- Parameters:
subject- the subject of the notificationmessage- the actual notification messagedestinations- where the notification is to go, could be an email address, a URL address, etc.
-
-