|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Sleeper
A Sleeper allows the request to halt and cease execution for some time, while still allowing output.
All implementations of Sleeper must be Serializable so we can
store Sleepers in the session and therefore have other connections wake them
up.
| Method Summary | |
|---|---|
void |
enterSleep(java.lang.String batchId,
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. |
| Method Detail |
|---|
void enterSleep(java.lang.String batchId,
java.lang.Runnable onClose,
int disconnectedTime)
throws java.io.IOException
batchId - The batchId for the pollonClose - The action to take when wakeUpToClose() is calleddisconnectedTime - The waiting time to instruct the browser before the next poll
java.io.IOExceptionvoid wakeUpForData()
int wakeUpToClose()
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||