Interface Notifier
- All Known Implementing Classes:
EmailNotifier
public interface Notifier
A 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
Modifier and TypeMethodDescriptionIndicates 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.voidSends a notification to a destinationvoidnotifyAdmins(String subject, String message) Sends a notification to configured admins
-
Method Details
-
initialize
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
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.
-
notifyAdmins
Sends a notification to configured admins- Parameters:
subject- the subject of the notificationmessage- the actual notification message
-