public class WaitSemaphore extends Semaphore implements WaitSync
| Constructor and Description |
|---|
WaitSemaphore() |
| Modifier and Type | Method and Description |
|---|---|
void |
doNotify()
Wakes up this sync that has been posed in wait status by a
WaitSync.doWait() call. |
void |
doWait()
Pone in wait status this sync, until
WaitSync.doNotify() is called to wake it up. |
int |
getWaiters() |
String |
toString() |
acquire, getUsers, logAcquire, logDeadlock, logRelease, release, waitImplpublic void doWait()
throws InterruptedException
WaitSyncWaitSync.doNotify() is called to wake it up.doWait in interface WaitSyncInterruptedExceptionWaitSync.doNotify()public void doNotify()
throws InterruptedException
WaitSyncWaitSync.doWait() call.
If this sync is not waiting, invoking this method should have no effect.doNotify in interface WaitSyncInterruptedExceptionWaitSync.doWait()public int getWaiters()
Copyright © 2015 JBoss by Red Hat. All rights reserved.