W3cubDocs

/OpenJDK 21

Interface NotificationListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
RelationService
public interface NotificationListener extends EventListener
Should be implemented by an object that wants to receive notifications.
Since:
1.5

Method Summary

Modifier and Type Method Description
void handleNotification(Notification notification, Object handback)
Invoked when a JMX notification occurs.

Method Details

handleNotification

void handleNotification(Notification notification, Object handback)
Invoked when a JMX notification occurs. The implementation of this method should return as soon as possible, to avoid blocking its notification broadcaster.
Parameters:
notification - The notification.
handback - An opaque object which helps the listener to associate information regarding the MBean emitter. This object is passed to the addNotificationListener call and resent, without modification, to the listener.

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.management/javax/management/NotificationListener.html