JavaTM 2 Platform
Standard Ed. 5.0

Package javax.management.timer

Provides the definition of the Timer MBean.

See:
          Description

Interface Summary
TimerMBean Exposes the management interface of the timer MBean.
 

Class Summary
Timer Provides the implementation of the timer MBean.
TimerAlarmClockNotification Deprecated. This class is of no use to user code.
TimerNotification This class provides definitions of the notifications sent by timer MBeans.
 

Package javax.management.timer Description

Provides the definition of the Timer MBean. A Timer MBean maintains a list of scheduled notifications and, because it is a NotificationBroadcaster, a list of listeners for those notifications. Whenever the time for one of the scheduled notifications is reached, each listener receives the notification. Notifications can be repeated at a fixed interval, and the number of repetitions can be bounded.

A listener for a Timer MBean can itself be an MBean, using the method MBeanServer.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object). In this way, a management application can create an MBean representing a task, then schedule that task using a Timer MBean.

Since:
1.5

JavaTM 2 Platform
Standard Ed. 5.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.