javax.management
Interface NotificationEmitter

All Superinterfaces:
NotificationBroadcaster sample code for javax.management.NotificationBroadcaster definition code for javax.management.NotificationBroadcaster
All Known Implementing Classes:
CounterMonitor sample code for javax.management.monitor.CounterMonitor definition code for javax.management.monitor.CounterMonitor , GaugeMonitor sample code for javax.management.monitor.GaugeMonitor definition code for javax.management.monitor.GaugeMonitor , JMXConnectorServer sample code for javax.management.remote.JMXConnectorServer definition code for javax.management.remote.JMXConnectorServer , MBeanServerDelegate sample code for javax.management.MBeanServerDelegate definition code for javax.management.MBeanServerDelegate , Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor , NotificationBroadcasterSupport sample code for javax.management.NotificationBroadcasterSupport definition code for javax.management.NotificationBroadcasterSupport , RelationService sample code for javax.management.relation.RelationService definition code for javax.management.relation.RelationService , RequiredModelMBean sample code for javax.management.modelmbean.RequiredModelMBean definition code for javax.management.modelmbean.RequiredModelMBean , RMIConnectorServer sample code for javax.management.remote.rmi.RMIConnectorServer definition code for javax.management.remote.rmi.RMIConnectorServer , StringMonitor sample code for javax.management.monitor.StringMonitor definition code for javax.management.monitor.StringMonitor , Timer sample code for javax.management.timer.Timer definition code for javax.management.timer.Timer

public interface NotificationEmitter
extends NotificationBroadcaster sample code for javax.management.NotificationBroadcaster definition code for javax.management.NotificationBroadcaster

Interface implemented by an MBean that emits Notifications. It allows a listener to be registered with the MBean as a notification listener.

This interface should be used by new code in preference to the NotificationBroadcaster sample code for javax.management.NotificationBroadcaster definition code for javax.management.NotificationBroadcaster interface.

Since:
1.5

Method Summary
 void removeNotificationListener sample code for javax.management.NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) (NotificationListener sample code for javax.management.NotificationListener definition code for javax.management.NotificationListener  listener, NotificationFilter sample code for javax.management.NotificationFilter definition code for javax.management.NotificationFilter  filter, Object sample code for java.lang.Object definition code for java.lang.Object  handback)
          Removes a listener from this MBean.
 
Methods inherited from interface javax.management.NotificationBroadcaster sample code for javax.management.NotificationBroadcaster definition code for javax.management.NotificationBroadcaster
addNotificationListener sample code for javax.management.NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) , getNotificationInfo sample code for javax.management.NotificationBroadcaster.getNotificationInfo() definition code for javax.management.NotificationBroadcaster.getNotificationInfo() , removeNotificationListener sample code for javax.management.NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener) definition code for javax.management.NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
 

Method Detail

removeNotificationListener sample code for javax.management.NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

void removeNotificationListener(NotificationListener sample code for javax.management.NotificationListener definition code for javax.management.NotificationListener  listener,
                                NotificationFilter sample code for javax.management.NotificationFilter definition code for javax.management.NotificationFilter  filter,
                                Object sample code for java.lang.Object definition code for java.lang.Object  handback)
                                throws ListenerNotFoundException sample code for javax.management.ListenerNotFoundException definition code for javax.management.ListenerNotFoundException 

Removes a listener from this MBean. The MBean must have a listener that exactly matches the given listener, filter, and handback parameters. If there is more than one such listener, only one is removed.

The filter and handback parameters may be null if and only if they are null in a listener to be removed.

Parameters:
listener - A listener that was previously added to this MBean.
filter - The filter that was specified when the listener was added.
handback - The handback that was specified when the listener was added.
Throws:
ListenerNotFoundException sample code for javax.management.ListenerNotFoundException definition code for javax.management.ListenerNotFoundException - The listener is not registered with the MBean, or it is not registered with the given filter and handback.