|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.BaseSleeper
public abstract class BaseSleeper
Common functionality for stock Sleepers.
| Constructor Summary | |
|---|---|
BaseSleeper(javax.servlet.http.HttpServletResponse response,
RealScriptSession scriptSession,
ScriptConduit conduit)
|
|
| Method Summary | |
|---|---|
void |
enterSleep(java.lang.Runnable onClose,
int disconnectedTime)
'halt' the current execution in some way. |
void |
wakeUpForData()
Wake up to handle new data that arrived in the associated ScriptSession. |
int |
wakeUpToClose()
Wake up to close down the Sleeper and free any resources held by it. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseSleeper(javax.servlet.http.HttpServletResponse response,
RealScriptSession scriptSession,
ScriptConduit conduit)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public final void enterSleep(java.lang.Runnable onClose,
int disconnectedTime)
throws java.io.IOException
Sleeper
enterSleep in interface SleeperonClose - The action to take when Sleeper.wakeUpToClose() is calleddisconnectedTime - The waiting time to instruct the browser before the next poll
java.io.IOExceptionpublic final void wakeUpForData()
Sleeper
wakeUpForData in interface Sleeperpublic final int wakeUpToClose()
Sleeper
wakeUpToClose in interface Sleeper
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||