|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jts.CosTransactions.EventSemaphore
public class EventSemaphore
The EventSemaphore interface provides operations that wait for and post an event semaphore.
This is specifically to handle the situation where the event may have been posted before the wait method is called. This behaviour is not supported by the existing wait and notify methods.
| Method Summary | |
|---|---|
boolean |
isPosted()
|
void |
waitEvent()
Waits for the event to be posted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isPosted()
public void waitEvent()
throws java.lang.InterruptedException
If the event has already been posted, then the operation returns immediately.
-
java.lang.InterruptedException - The wait was interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||