org.jboss.messaging.core.management
Interface NotificationService
- All Known Subinterfaces:
- ManagementService
- All Known Implementing Classes:
- ManagementServiceImpl
public interface NotificationService
A NotificationService
- Author:
- jmesnil
sendNotification
void sendNotification(Notification notification)
throws java.lang.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 occured (long)
in addition to the properties defined in props
- Throws:
java.lang.Exception
- See Also:
ManagementHelper
enableNotifications
void enableNotifications(boolean enable)
addNotificationListener
void addNotificationListener(NotificationListener listener)
removeNotificationListener
void removeNotificationListener(NotificationListener listener)
Copyright © 2006 JBoss Inc. All Rights Reserved.