public interface NotificationService
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(NotificationListener listener) |
void |
enableNotifications(boolean enable) |
void |
removeNotificationListener(NotificationListener listener) |
void |
sendNotification(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 in props |
void sendNotification(Notification notification) throws Exception
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
Exception
ManagementHelper
void enableNotifications(boolean enable)
void addNotificationListener(NotificationListener listener)
void removeNotificationListener(NotificationListener listener)
Copyright © 2016 JBoss by Red Hat. All rights reserved.