|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jboss.util.Semaphore
|
+--org.jboss.util.WaitSemaphore
Wait exclusive semaphore with wait - notify primitives
| Constructor Summary | |
WaitSemaphore()
|
|
| Method Summary | |
void |
doNotify()
Wakes up this sync that has been posed in wait status by a doWait() call. |
void |
doWait()
Pone in wait status this sync, until doNotify() is called to wake it up. |
int |
getWaiters()
|
java.lang.String |
toString()
|
| Methods inherited from class org.jboss.util.Semaphore |
acquire, getUsers, logAcquire, logDeadlock, logRelease, release, waitImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.util.Sync |
acquire, release |
| Constructor Detail |
public WaitSemaphore()
| Method Detail |
public void doWait()
throws java.lang.InterruptedException
WaitSyncWaitSync.doNotify() is called to wake it up.doWait in interface WaitSyncorg.jboss.util.WaitSyncWaitSync.doNotify()
public void doNotify()
throws java.lang.InterruptedException
WaitSyncWaitSync.doWait() call.
If this sync is not waiting, invoking this method should have no effect.doNotify in interface WaitSyncorg.jboss.util.WaitSyncWaitSync.doWait()public int getWaiters()
public java.lang.String toString()
toString in class Semaphore
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||