java.lang.Objectjavax.management.remote.TargetedNotification
public class TargetedNotification
     
一个 (Notification, Listener ID) 对。
此类用于将一个发出的通知与通知所定向的侦听器 ID 进行关联。
| 构造方法摘要 | |
|---|---|
TargetedNotification(Notification notification, Integer listenerID) 构造一个 TargetedNotification 对象。 |  
    |
| 方法摘要 | |
|---|---|
  Integer |  
     getListenerID() 此通知所定向的侦听器的 ID。  |  
    
  Notification |  
     getNotification() 发出的通知。  |  
    
  String |  
     toString() 返回此定向通知的一个文本表示形式。  |  
    
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |  
    
| 构造方法详细信息 | 
|---|
public TargetedNotification(Notification notification, Integer listenerID)
构造一个 TargetedNotification 对象。此对象包含一个 (Notification, Listener ID) 对。Listener ID 标识通知所定向的客户端侦听器。客户端侦听器 ID 是作为对 addNotificationListener 请求的响应原先从连接器服务器返回的一个 ID。
notification - 从 MBean 服务器发出的通知。
     listenerID - 此通知所定向的侦听器的 ID。 
     IllegalArgumentException - 如果 
      listenerID 或 
      notification 为 null。
     | 方法详细信息 | 
|---|
public Notification getNotification()
发出的通知。
public Integer getListenerID()
此通知所定向的侦听器的 ID。
public String toString()