|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorc.orchard.ThreadWaiter
public class ThreadWaiter
Use Java wait/notify to implement suspend/resume.
Waiter
Constructor Summary | |
---|---|
ThreadWaiter()
|
Method Summary | |
---|---|
void |
resume()
Signal that the asynchronous call should be resumed. |
void |
suspend(java.lang.Object monitor)
Suspend the current request and release locks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadWaiter()
Method Detail |
---|
public void suspend(java.lang.Object monitor) throws java.lang.InterruptedException
Waiter
suspend
in interface Waiter
monitor
- the monitor to wait on if a blocking implementation is used.
java.lang.InterruptedException
- if the call timed out.public void resume()
Waiter
resume
in interface Waiter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |