Public Member Functions | Private Attributes
org.ros.concurrent.EventDispatcher< T > Class Reference
Inheritance diagram for org.ros.concurrent.EventDispatcher< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 EventDispatcher (T listener, int queueCapacity)
void loop () throws InterruptedException
void signal (final SignalRunnable< T > signalRunnable)

Private Attributes

final CircularBlockingDeque
< SignalRunnable< T > > 
events
final T listener

Detailed Description

Author:
damonkohler@google.com (Damon Kohler)
Parameters:
<T>the listener type

Definition at line 26 of file EventDispatcher.java.


Constructor & Destructor Documentation

org.ros.concurrent.EventDispatcher< T >.EventDispatcher ( listener,
int  queueCapacity 
) [inline]

Definition at line 31 of file EventDispatcher.java.


Member Function Documentation

void org.ros.concurrent.EventDispatcher< T >.loop ( ) throws InterruptedException [inline, virtual]

The body of the loop. This will run continuously until the CancellableLoop has been interrupted externally or by calling cancel().

Implements org.ros.concurrent.CancellableLoop.

Definition at line 41 of file EventDispatcher.java.

void org.ros.concurrent.EventDispatcher< T >.signal ( final SignalRunnable< T >  signalRunnable) [inline]

Definition at line 36 of file EventDispatcher.java.


Member Data Documentation

final CircularBlockingDeque<SignalRunnable<T> > org.ros.concurrent.EventDispatcher< T >.events [private]

Definition at line 29 of file EventDispatcher.java.

final T org.ros.concurrent.EventDispatcher< T >.listener [private]

Definition at line 28 of file EventDispatcher.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50