org.directwebremoting.impl
Class TimedAlarm

java.lang.Object
  extended by org.directwebremoting.impl.TimedAlarm
All Implemented Interfaces:
Alarm

public class TimedAlarm
extends java.lang.Object
implements Alarm

An Alarm that goes off after a certain length of time.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
TimedAlarm(Sleeper sleeper, long waitTime, java.util.concurrent.ScheduledThreadPoolExecutor executor)
           
 
Method Summary
 void cancel()
          Prevent further calls to Sleeper.wakeUp().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedAlarm

public TimedAlarm(Sleeper sleeper,
                  long waitTime,
                  java.util.concurrent.ScheduledThreadPoolExecutor executor)
Parameters:
waitTime - How long we wait before the Alarm goes off
Method Detail

cancel

public void cancel()
Description copied from interface: Alarm
Prevent further calls to Sleeper.wakeUp(). See the note about late calls above.

Specified by:
cancel in interface Alarm

Copyright 2008