public class TargetedNotification extends Object implements Serializable
一个(通知,侦听器)对。
这个类用于将一个发出的通知与侦听器标识关联到它的目标。
| Constructor and Description |
|---|
TargetedNotification(Notification notification, Integer listenerID)
构建了一个
TargetedNotification对象。
|
public TargetedNotification(Notification notification, Integer listenerID)
构建了一个TargetedNotification对象。该对象包含一个对(通知,侦听器号)。侦听器标识标识通知为目标的客户端侦听器。客户端ID是一个听者以前返回的响应一个addNotificationListener请求连接服务器。
notification从MBean服务器发出的通知。
listenerID的ID的听者,这个通知是有针对性的。
IllegalArgumentException -如果
listenerid或
通知是空的。
public Notification getNotification()
发出的通知。
public Integer getListenerID()
通知的侦听器的标识。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.