Interface NotificationService
- All Known Subinterfaces:
ManagementService
- All Known Implementing Classes:
ManagementServiceImpl
public interface NotificationService
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(NotificationListener listener) voidenableNotifications(boolean enable) voidvoidsendNotification(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 Details
-
sendNotification
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:
-
enableNotifications
void enableNotifications(boolean enable) -
addNotificationListener
-
removeNotificationListener
-