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, waitImpl
public void doWait() throws InterruptedException
WaitSync
WaitSync.doNotify()
is called to wake it up.doWait
in interface WaitSync
InterruptedException
WaitSync.doNotify()
public void doNotify() throws InterruptedException
WaitSync
WaitSync.doWait()
call.
If this sync is not waiting, invoking this method should have no effect.doNotify
in interface WaitSync
InterruptedException
WaitSync.doWait()
public int getWaiters()
Copyright © 2018 JBoss by Red Hat. All rights reserved.