|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.directwebremoting.dwrp.BasicAlarm
org.directwebremoting.dwrp.OutputAlarm
public class OutputAlarm
An Alarm that goes off whenever output happens on a ScriptSession.
| Nested Class Summary | |
|---|---|
protected class |
OutputAlarm.AlarmScriptConduit
|
| Field Summary | |
|---|---|
protected ScriptConduit |
conduit
A conduit to alert us if there is output |
protected static Log |
log
The log stream |
protected int |
maxWaitAfterWrite
How long do we wait after output happens in case there is more output |
protected RealScriptSession |
scriptSession
The script session to monitor for output |
protected java.util.TimerTask |
task
The task that causes the alarm to go off |
| Constructor Summary | |
|---|---|
OutputAlarm(RealScriptSession scriptSession,
int maxWaitAfterWrite)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Prevent further calls to Sleeper#wakeUp(). |
void |
setAlarmAction(org.directwebremoting.dwrp.Sleeper sleeper)
Alarms need something to do when they go off. |
| Methods inherited from class org.directwebremoting.dwrp.BasicAlarm |
|---|
raiseAlarm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ScriptConduit conduit
protected int maxWaitAfterWrite
protected RealScriptSession scriptSession
protected java.util.TimerTask task
protected static final Log log
| Constructor Detail |
|---|
public OutputAlarm(RealScriptSession scriptSession,
int maxWaitAfterWrite)
scriptSession - The script session to monitormaxWaitAfterWrite - How long do we wait after output| Method Detail |
|---|
public void setAlarmAction(org.directwebremoting.dwrp.Sleeper sleeper)
Sleeper#wakeUp().
setAlarmAction in class BasicAlarmsleeper - The action to awake when the alarm goes offpublic void cancel()
Sleeper#wakeUp().
See the note about late calls above.
cancel in class BasicAlarm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||