|
||||||||||
| 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.
There are 3 envisaged implementations
Object.wait(long) and Object.notify() to resume.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 |
goToSleep(java.lang.Runnable onAwakening)
'halt' the current execution in some way. |
void |
wakeUp()
This method should attempt to resume the execution. |
| Method Detail |
|---|
void goToSleep(java.lang.Runnable onAwakening)
Runnable so the system can schedule it at an
appropriate time.
onAwakening - The action to take when wakeUp() is calledvoid wakeUp()
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||