1. /*
  2. * @(#)NotificationListener.java 4.16 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.management;
  8. import java.util.EventListener;
  9. /**
  10. * Should be implemented by an object that wants to receive notifications.
  11. *
  12. * @since 1.5
  13. */
  14. public interface NotificationListener extends java.util.EventListener {
  15. /**
  16. * Invoked when a JMX notification occurs.
  17. * The implementation of this method should return as soon as possible, to avoid
  18. * blocking its notification broadcaster.
  19. *
  20. * @param notification The notification.
  21. * @param handback An opaque object which helps the listener to associate information
  22. * regarding the MBean emitter. This object is passed to the MBean during the
  23. * addListener call and resent, without modification, to the listener. The MBean object
  24. * should not use or modify the object.
  25. *
  26. */
  27. public void handleNotification(Notification notification, Object handback) ;
  28. }