APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management.timer

pack-priv Class TimerAlarmClock

extends TimerTask
Class Inheritance
Imports
java.util.Date, java.lang.System.Logger.Level

This class provides a simple implementation of an alarm clock MBean. The aim of this MBean is to set up an alarm which wakes up the timer every timeout (fixed-delay) or at the specified date (fixed-rate).

Field Summary

Modifier and TypeField and Description
pack-priv Timer
pack-priv Date
pack-priv long

Constructor Summary

AccessConstructor and Description
public
TimerAlarmClock(Timer listener, long timeout)

public
TimerAlarmClock(Timer listener, Date next)

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements abstract java.util.TimerTask.run.

Implements java.lang.Runnable.run.

This method is called by the timer when it is started.

Inherited from java.util.TimerTask:
cancelscheduledExecutionTime

Field Detail

listenerback to summary
pack-priv Timer listener
nextback to summary
pack-priv Date next
timeoutback to summary
pack-priv long timeout

Constructor Detail

TimerAlarmClockback to summary
public TimerAlarmClock(Timer listener, long timeout)
TimerAlarmClockback to summary
public TimerAlarmClock(Timer listener, Date next)

Method Detail

runback to summary
public void run()

Implements abstract java.util.TimerTask.run.

Implements java.lang.Runnable.run.

This method is called by the timer when it is started.