JavaTM 2 Platform
Standard Ed. 6

javax.management.remote
类 NotificationResult

java.lang.Object
  继承者 javax.management.remote.NotificationResult
所有已实现的接口:
Serializable

public class NotificationResult
extends Object
implements Serializable

缓存的通知的查询结果。通知缓存中的通知具有正的、单调递增的序列号。通知查询的结果包含以下元素:

nextSequenceNumber 不能小于 earliestSequenceNumber。如果小于早先的序列号,这表明介于两个号之间的通知可能已丢失。

从以下版本开始:
1.5
另请参见:
序列化表格

构造方法摘要
NotificationResult(long earliestSequenceNumber, long nextSequenceNumber, TargetedNotification[] targetedNotifications)
          构造一个通知查询结果。
 
方法摘要
 long getEarliestSequenceNumber()
          返回缓存中保留的最早通知的序列号。
 long getNextSequenceNumber()
          返回下一个可供查询使用的通知的序列号。
 TargetedNotification[] getTargetedNotifications()
          返回查询到的通知以及相应的侦听器。
 String toString()
          返回该对象的字符串表示形式。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

NotificationResult

public NotificationResult(long earliestSequenceNumber,
                          long nextSequenceNumber,
                          TargetedNotification[] targetedNotifications)

构造一个通知查询结果。

参数:
earliestSequenceNumber - 缓存中仍保留的最早通知的序列号。
nextSequenceNumber - 下一个可供查询使用的通知的序列号。
targetedNotifications - 查询得到的通知以及相应的侦听器。此数组可以为空。
抛出:
IllegalArgumentException - 如果 targetedNotifications 为 null,或者 earliestSequenceNumbernextSequenceNumber 为负。
方法详细信息

getEarliestSequenceNumber

public long getEarliestSequenceNumber()
返回缓存中保留的最早通知的序列号。

返回:
缓存中保留的最早通知的序列号。

getNextSequenceNumber

public long getNextSequenceNumber()
返回下一个可供查询使用的通知的序列号。

返回:
下一个可供查询使用的通知的序列号。

getTargetedNotifications

public TargetedNotification[] getTargetedNotifications()
返回查询到的通知以及相应的侦听器。

返回:
查询得到的通知以及相应的侦听器。此数组可以为空。

toString

public String toString()
返回该对象的字符串表示形式。结果应是一个简明而丰富的表示形式,它方便人们阅读。

覆盖:
Object 中的 toString
返回:
该对象的字符串表示形式。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only