APIdia Launch Partner
Top Description Interfaces Classes
module java.management

Package javax.management.timer


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 javax.management.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

Interface Summary

Modifier and TypeInterface and Description
public interface
TimerMBean

Exposes the management interface of the timer MBean.

Class Summary

Modifier and TypeClass and Description
public class
Timer

Provides the implementation of the timer MBean.

pack-priv class
TimerAlarmClock

This class provides a simple implementation of an alarm clock MBean.

pack-priv class
TimerAlarmClockNotification

Definitions of the notifications sent by TimerAlarmClock MBeans.

public class
TimerNotification

This class provides definitions of the notifications sent by timer MBeans.