org.directwebremoting.impl
Class OutputAlarm

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

public class OutputAlarm
extends java.lang.Object
implements Alarm

An Alarm that goes off whenever output happens on a ScriptSession.

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

Constructor Summary
OutputAlarm(Sleeper sleeper, RealScriptSession scriptSession, int maxWaitAfterWrite, 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

OutputAlarm

public OutputAlarm(Sleeper sleeper,
                   RealScriptSession scriptSession,
                   int maxWaitAfterWrite,
                   java.util.concurrent.ScheduledThreadPoolExecutor executor)
Parameters:
scriptSession - The script session to monitor
maxWaitAfterWrite - How long do we wait after output
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