Interface NotificationService

All Known Subinterfaces:
ManagementService
All Known Implementing Classes:
ManagementServiceImpl

public interface NotificationService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    enableNotifications(boolean enable)
     
    void
     
    void
    the message corresponding to a notification will always contain the properties: ManagementHelper.HDR_NOTIFICATION_TYPE - the type of notification (SimpleString) ManagementHelper.HDR_NOTIFICATION_MESSAGE - a message contextual to the notification (SimpleString) ManagementHelper.HDR_NOTIFICATION_TIMESTAMP - the timestamp when the notification occurred (long) in addition to the properties defined in props
  • Method Details

    • sendNotification

      void sendNotification(Notification notification) throws Exception
      the message corresponding to a notification will always contain the properties:
      • ManagementHelper.HDR_NOTIFICATION_TYPE - the type of notification (SimpleString)
      • ManagementHelper.HDR_NOTIFICATION_MESSAGE - a message contextual to the notification (SimpleString)
      • ManagementHelper.HDR_NOTIFICATION_TIMESTAMP - the timestamp when the notification occurred (long)
      in addition to the properties defined in props
      Throws:
      Exception
      See Also:
    • enableNotifications

      void enableNotifications(boolean enable)
    • addNotificationListener

      void addNotificationListener(NotificationListener listener)
    • removeNotificationListener

      void removeNotificationListener(NotificationListener listener)