javax.management

Interface NotificationListener

public interface NotificationListener extends EventListener

Represents a object that can receive notifications from a bean.

Since: 1.5

Method Summary
voidhandleNotification(Notification notification, Object passback)
Invoked by the notifying bean when a notification is to be delivered to the recipient.

Method Detail

handleNotification

public void handleNotification(Notification notification, Object passback)
Invoked by the notifying bean when a notification is to be delivered to the recipient. As the transmission of notifications takes place sequentially, implementors of this method should avoid performing lengthy operations, as the notifying bean will stall until the method is complete.

Parameters: notification the notification from the bean. passback the object that was passed to the notifying bean as part of the registration process.

See Also: NotificationBroadcaster