Interface NotificationContext

    • Method Detail

      • getUser

        User getUser()
        Returns:
        the User to notify.
      • getAlarmEvents

        java.util.List<AlarmEvent> getAlarmEvents()
        Returns:
        A List of AlarmEvents that triggered this notification.
      • notificationDone

        void notificationDone()
        Call when notification has been completed successfully.
      • notificationFailed

        void notificationFailed​(LocalizedString failureMessage)
        None of the AlarmEvents in this context could be sent due some underlying failure. If a fall-back for the current AlarmPipeline is defined, all events will be placed upon it for evaluation.
        Parameters:
        failureMessage - The reason for failure. This message will be user-facing in the pipeline status area if no fall-back is defined.