javax.management

Interface NotificationEmitter

public interface NotificationEmitter extends NotificationBroadcaster

Represents a bean that can emit notifications when events occur. Other beans can use this interface to add themselves to the list of recipients of such notifications.

Since: 1.5

Method Summary
voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object passback)
Removes the specified listener from the list of recipients of notifications from this bean.

Method Detail

removeNotificationListener

public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object passback)
Removes the specified listener from the list of recipients of notifications from this bean. Only the first instance with the supplied filter and passback object is removed. null is used as a valid value for these parameters, rather than as a way to remove all registration instances for the specified listener; for this behaviour instead, see the details of the same method in {@link NotificationBroadcaster}.

Parameters: listener the listener to remove. filter the filter of the listener to remove. passback the passback object of the listener to remove.

Throws: ListenerNotFoundException if the specified listener is not registered with this bean.

See Also: NotificationEmitter