|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.dwrp.ThreadWaitSleeper
public class ThreadWaitSleeper
The simplest type of Sleeper that just uses Object.wait()
and
Object.notify()
to halt a Thread and restart it.
Constructor Summary | |
---|---|
ThreadWaitSleeper()
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadWaitSleeper()
Method Detail |
---|
public 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 calledpublic void wakeUp()
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |