org.jboss.messaging.core.management
Interface NotificationService

All Known Subinterfaces:
ManagementService
All Known Implementing Classes:
ManagementServiceImpl

public interface NotificationService

A NotificationService

Author:
jmesnil

Method Summary
 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 occured (long) in addition to the properties defined in props
 

Method Detail

sendNotification

void sendNotification(Notification notification)
                      throws java.lang.Exception
the message corresponding to a notification will always contain the properties: 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.