public class TransientSignal extends CObject implements Signal
This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java
assert.
Constructor and Description |
---|
TransientSignal()
Constructs a new TransientSignal registering waiting threads.
|
TransientSignal(boolean registerAwaitingThreads)
Constructs a new TransientSignal.
|
Modifier and Type | Method and Description |
---|---|
void |
await()
Object's wait replacement, in which:
- the checked exception InterruptedException, is replaced by the unchecked exception ThreadInterruptedException; - supports the registration of waiting threads for interrupt purposes. |
void |
send()
Signaling (sender).
|
await, await, broadcast, interruptWaitingThreads, lockIsMine, registerAwaitingThreads, signal, syncronizedLockIsMine
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
interruptWaitingThreads, registerAwaitingThreads
public TransientSignal()
public TransientSignal(boolean registerAwaitingThreads)
registerAwaitingThreads
- if true, threads are registered when waitingpublic void send()
Signal
public void await()
CObject
syncronizedLockIsMine()
- native lock owned by me