T - the listener typepublic class EventDispatcher<T> extends CancellableLoop
| Constructor and Description |
|---|
EventDispatcher(T listener,
int queueCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
loop()
The body of the loop.
|
void |
signal(SignalRunnable<T> signalRunnable) |
cancel, handleInterruptedException, isRunning, run, setuppublic EventDispatcher(T listener, int queueCapacity)
public void signal(SignalRunnable<T> signalRunnable)
public void loop()
throws java.lang.InterruptedException
CancellableLoopCancellableLoop has been interrupted externally or by calling
CancellableLoop.cancel().loop in class CancellableLoopjava.lang.InterruptedException