|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.Semaphore (src)
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 (src) |
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 (src) |
acquire, release |
| Constructor Detail |
public WaitSemaphore()
| Method Detail |
public void doWait()
throws java.lang.InterruptedException
WaitSync (src) WaitSync.doNotify() is called to wake it up.
doWait in interface WaitSync (src) java.lang.InterruptedExceptionWaitSync.doNotify()
public void doNotify()
throws java.lang.InterruptedException
WaitSync (src) WaitSync.doWait() call.
If this sync is not waiting, invoking this method should have no effect.
doNotify in interface WaitSync (src) java.lang.InterruptedExceptionWaitSync.doWait()public int getWaiters()
public java.lang.String toString()
toString in class Semaphore (src)
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||