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, setup
public EventDispatcher(T listener, int queueCapacity)
public void signal(SignalRunnable<T> signalRunnable)
public void loop() throws java.lang.InterruptedException
CancellableLoop
CancellableLoop
has been interrupted externally or by calling
CancellableLoop.cancel()
.loop
in class CancellableLoop
java.lang.InterruptedException