public class

MessageListenerSink

extends AbstractQueuedCallbackSink
java.lang.Object
   ↳ com.openxc.sinks.AbstractQueuedCallbackSink
     ↳ com.openxc.sinks.MessageListenerSink

Class Overview

A data sink that sends new measurements of specific types to listeners. Applications requesting asynchronous updates for specific signals get their values through this sink.

Summary

Public Constructors
MessageListenerSink()
Public Methods
synchronized void register(KeyMatcher matcher, VehicleMessage.Listener listener, boolean persist)
synchronized void register(KeyMatcher matcher, VehicleMessage.Listener listener)
synchronized void register(Class<? extends VehicleMessage> messageType, VehicleMessage.Listener listener)
void register(Class<? extends Measurement> measurementType, Measurement.Listener listener)
String toString()
synchronized void unregister(Class<? extends VehicleMessage> messageType, VehicleMessage.Listener listener)
synchronized void unregister(Class<? extends Measurement> measurementType, Measurement.Listener listener)
synchronized void unregister(KeyMatcher matcher, VehicleMessage.Listener listener)
Protected Methods
synchronized void propagateMessage(VehicleMessage message)
[Expand]
Inherited Methods
From class com.openxc.sinks.AbstractQueuedCallbackSink
From class java.lang.Object
From interface com.openxc.sinks.VehicleDataSink

Public Constructors

public MessageListenerSink ()

Public Methods

public synchronized void register (KeyMatcher matcher, VehicleMessage.Listener listener, boolean persist)

public synchronized void register (KeyMatcher matcher, VehicleMessage.Listener listener)

public synchronized void register (Class<? extends VehicleMessage> messageType, VehicleMessage.Listener listener)

public void register (Class<? extends Measurement> measurementType, Measurement.Listener listener)

public String toString ()

public synchronized void unregister (Class<? extends VehicleMessage> messageType, VehicleMessage.Listener listener)

public synchronized void unregister (Class<? extends Measurement> measurementType, Measurement.Listener listener)

public synchronized void unregister (KeyMatcher matcher, VehicleMessage.Listener listener)

Protected Methods

protected synchronized void propagateMessage (VehicleMessage message)