Interface NotificationService
-
- All Known Subinterfaces:
ManagementService
- All Known Implementing Classes:
ManagementServiceImpl
public interface NotificationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddNotificationListener(NotificationListener listener)voidenableNotifications(boolean enable)voidremoveNotificationListener(NotificationListener listener)voidsendNotification(Notification notification)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 inprops
-
-
-
Method Detail
-
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)
props- Throws:
Exception- See Also:
ManagementHelper
-
enableNotifications
void enableNotifications(boolean enable)
-
addNotificationListener
void addNotificationListener(NotificationListener listener)
-
removeNotificationListener
void removeNotificationListener(NotificationListener listener)
-
-