|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.remote.NotificationResult
public class NotificationResult
缓存的通知的查询结果。通知缓存中的通知具有正的、单调递增的序列号。通知查询的结果包含以下元素:
nextSequenceNumber 不能小于 earliestSequenceNumber。如果小于早先的序列号,这表明介于两个号之间的通知可能已丢失。
| 构造方法摘要 | |
|---|---|
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 |
| 构造方法详细信息 |
|---|
public NotificationResult(long earliestSequenceNumber,
long nextSequenceNumber,
TargetedNotification[] targetedNotifications)
构造一个通知查询结果。
earliestSequenceNumber - 缓存中仍保留的最早通知的序列号。
nextSequenceNumber - 下一个可供查询使用的通知的序列号。
targetedNotifications - 查询得到的通知以及相应的侦听器。此数组可以为空。
IllegalArgumentException - 如果
targetedNotifications 为 null,或者
earliestSequenceNumber 或
nextSequenceNumber 为负。
| 方法详细信息 |
|---|
public long getEarliestSequenceNumber()
public long getNextSequenceNumber()
public TargetedNotification[] getTargetedNotifications()
public String toString()
Object 中的
toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。