Package no.digipost.concurrent
Class SignalMediator
- java.lang.Object
-
- no.digipost.concurrent.SignalMediator
-
public final class SignalMediator extends Object
A signal mediator is a many-to-one carrier of a simple "no-content" signal that one other part is interested in occurring. Any threads may provide as manysignalsto the mediator they like, the first occurring signal will enable one unblocking invocation of thesignalWaiter.doWait(), and any more signaling will be silently discarded until the "consumption" of the signal is done. When a call todoWait()has completed, the mediator will accept a new signal again.
-
-
Field Summary
Fields Modifier and Type Field Description WaitersignalWaiter
-
Constructor Summary
Constructors Constructor Description SignalMediator()SignalMediator(String name)
-