JavaTM Platform
Standard Ed. 6

javax.management
接口 NotificationListener

所有超级接口:
EventListener
所有已知实现类:
RelationService

public interface NotificationListener
extends EventListener

应该由想要接收通知的对象来实现。

从以下版本开始:
1.5

方法摘要
 void handleNotification(Notification notification, Object handback)
          出现 JMX 通知时调用。
 

方法详细信息

handleNotification

void handleNotification(Notification notification,
                        Object handback)
出现 JMX 通知时调用。此方法的实现应该尽快返回,以避免阻塞其通知广播者。

参数:
notification - 通知。
handback - 一个不透明对象,用于帮助侦听器关联关于 MBean 发出者的信息。在 addListener 调用期间将此对象传递到 MBean,并在不经修改的情况下重发到侦听器。MBean 对象不应使用或修改该对象。

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策