org.jboss.mx.util
Class JBossNotificationBroadcasterSupport

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter
Direct Known Subclasses:
AsynchNotificationBroadcasterSupport

public class JBossNotificationBroadcasterSupport
extends Object
implements javax.management.NotificationEmitter

A helper class for notification broadcasters/emitters

Version:
$Revision: 1.4 $
Author:
Juha Lindfors., Adrian Brock.

Constructor Summary
JBossNotificationBroadcasterSupport()
          Construct the new notification broadcaster support object
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 void handleNotification(javax.management.NotificationListener listener, javax.management.Notification notification, Object handback)
          Handle the notification, the default implementation is to synchronously invoke the listener.
 long nextNotificationSequenceNumber()
          The nextNotificationSequenceNumber method returns the next sequence number for use in notifications.
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
           
 void sendNotification(javax.management.Notification notification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossNotificationBroadcasterSupport

public JBossNotificationBroadcasterSupport()
Construct the new notification broadcaster support object

Method Detail

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    Object handback)
Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
Throws:
javax.management.ListenerNotFoundException

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener,
                                       javax.management.NotificationFilter filter,
                                       Object handback)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationEmitter
Throws:
javax.management.ListenerNotFoundException

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster

sendNotification

public void sendNotification(javax.management.Notification notification)

handleNotification

public void handleNotification(javax.management.NotificationListener listener,
                               javax.management.Notification notification,
                               Object handback)
Handle the notification, the default implementation is to synchronously invoke the listener.

Parameters:
listener - the listener to notify
notification - the notification
handback - the handback object

nextNotificationSequenceNumber

public long nextNotificationSequenceNumber()
The nextNotificationSequenceNumber method returns the next sequence number for use in notifications.

Returns:
a long value


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.