Skip navigation links
Java™ Platform
Standard Ed. 8

Package javax.management.timer

提供定时器MBean的定义。

See: 描述

Package javax.management.timer Description

提供定时器MBean的定义。 计时器MBean维护计划通知的列表,因为它是一个NotificationBroadcaster ,这些通知的监听器列表。 无论何时到达其中一个计划通知的时间,每个收听者都会收到通知。 可以以固定的间隔重复通知,重复次数可以限制。

Timer MBean的侦听器本身可以是MBean,使用方法MBeanServer.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) 以这种方式,管理应用程序可以创建一个表示任务的MBean,然后使用Timer MBean调度该任务。

从以下版本开始:
1.5
Skip navigation links
Java™ Platform
Standard Ed. 8

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.

本帮助文档是使用 《谷歌翻译》翻译,请与英文版配合使用