Java EE 5 SDK

com.sun.appserv.management.util.jmx
Class NotificationEmitterSupport

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by com.sun.appserv.management.util.jmx.NotificationEmitterSupport
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter

public class NotificationEmitterSupport
extends NotificationBroadcasterSupport

Features:


Constructor Summary
NotificationEmitterSupport(boolean asyncDelivery)
           
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void cleanup()
           
 int getListenerCount()
           
 int getNotificationTypeListenerCount(String type)
           
protected  void internalSendNotification(Notification notif)
           
 void removeNotificationListener(NotificationListener listener)
           
 void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void sendAll()
          Synchronously (on current thread), ensure that all Notifications have been delivered.
 void sendNotification(Notification notif)
          Send the Notification.
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
getNotificationInfo, handleNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationEmitterSupport

public NotificationEmitterSupport(boolean asyncDelivery)
Method Detail

cleanup

public void cleanup()

sendAll

public void sendAll()
Synchronously (on current thread), ensure that all Notifications have been delivered.


getListenerCount

public int getListenerCount()

getNotificationTypeListenerCount

public int getNotificationTypeListenerCount(String type)

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)
Specified by:
addNotificationListener in interface NotificationBroadcaster
Overrides:
addNotificationListener in class NotificationBroadcasterSupport

removeNotificationListener

public void removeNotificationListener(NotificationListener listener)
                                throws ListenerNotFoundException
Specified by:
removeNotificationListener in interface NotificationBroadcaster
Overrides:
removeNotificationListener in class NotificationBroadcasterSupport
Throws:
ListenerNotFoundException

removeNotificationListener

public void removeNotificationListener(NotificationListener listener,
                                       NotificationFilter filter,
                                       Object handback)
                                throws ListenerNotFoundException
Specified by:
removeNotificationListener in interface NotificationEmitter
Overrides:
removeNotificationListener in class NotificationBroadcasterSupport
Throws:
ListenerNotFoundException

internalSendNotification

protected void internalSendNotification(Notification notif)

sendNotification

public void sendNotification(Notification notif)
Send the Notification. If created with async=true, then this routine returns immediately and the Notification is sent on a separate Thread.

Overrides:
sendNotification in class NotificationBroadcasterSupport

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.