|
||||||||||
| 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.String batchId,
java.lang.Runnable onClose,
int disconnectedTime)
'halt' the current execution in some way. |
void |
setConverterManager(ConverterManager converterManager)
|
void |
setJsonOutput(boolean jsonOutput)
|
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.String batchId,
java.lang.Runnable onClose,
int disconnectedTime)
Sleeper
enterSleep in interface SleeperbatchId - The batchId for the pollonClose - The action to take when Sleeper.wakeUpToClose() is calleddisconnectedTime - The waiting time to instruct the browser before the next pollpublic final void wakeUpForData()
Sleeper
wakeUpForData in interface Sleeperpublic final int wakeUpToClose()
Sleeper
wakeUpToClose in interface Sleeperpublic void setConverterManager(ConverterManager converterManager)
public void setJsonOutput(boolean jsonOutput)
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||