public class PersistentSignal extends CObject implements Signal
This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java assert.
| Constructor and Description |
|---|
PersistentSignal()
Constructs a new PersistentSignal registering waiting threads.
|
PersistentSignal(boolean registerAwaitingThreads)
Constructs a new PersistentSignal.
|
| 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 PersistentSignal()
public PersistentSignal(boolean registerAwaitingThreads)
registerAwaitingThreads - if true, threads are registered when waitingpublic void send()
Signalpublic void await()
CObjectsyncronizedLockIsMine() - native lock owned by me