Package org.ros.concurrent
Class EventDispatcher<T>
java.lang.Object
org.ros.concurrent.CancellableLoop
org.ros.concurrent.EventDispatcher<T>
- Type Parameters:
T- the listener type
- All Implemented Interfaces:
Runnable
- Author:
- damonkohler@google.com (Damon Kohler)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidloop()The body of the loop.voidsignal(SignalRunnable<T> signalRunnable) Methods inherited from class org.ros.concurrent.CancellableLoop
cancel, handleInterruptedException, isRunning, run, setup
-
Constructor Details
-
EventDispatcher
-
-
Method Details
-
signal
-
loop
Description copied from class:CancellableLoopThe body of the loop. This will run continuously until theCancellableLoophas been interrupted externally or by callingCancellableLoop.cancel().- Specified by:
loopin classCancellableLoop- Throws:
InterruptedException
-
getListener
-