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, syncronizedLockIsMineequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinterruptWaitingThreads, registerAwaitingThreadspublic TransientSignal()
public TransientSignal(boolean registerAwaitingThreads)
registerAwaitingThreads - if true, threads are registered when waitingpublic void send()
Signalpublic void await()
CObjectsyncronizedLockIsMine() - native lock owned by me