org.eclipse.soda.dk.transport.service
Interface MessageListener
- All Superinterfaces:
- ErrorListener
- All Known Subinterfaces:
- ControllerService, MessageHandler, TransportListener
- All Known Implementing Classes:
- ConcreteSignal, Controller, DataCommand, DataSignal, MeasurementCommand, MessageCommand, MessageListeners, MessageSignal, ParameterCommand, ParameterSignal, QueueDevice, ThreadDevice, TransformCommand, TransformSignal, TransportDevice, TransportListeners, TransportTest, TransportTestcase, TunnelTransport
public interface MessageListener
- extends ErrorListener
The MessageListener interface defines the methods to be called when a
message is received. A MessageListener Interface is implemented by anyone who
wishes to be notified whenever a valid MessageService is received by the
TransportService.
- Version:
- 1.0.0
- See Also:
Transport,
ErrorListener,
MessageService,
ParameterService,
TransportService
messageReceived
void messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
- This API will be called each time the TransportService receives a valid
message. Since other notifications are blocked until this method returns,
implementors of this method should:
- Not cause the device or transport to be blocked (eg calling read on
a measuremnt).
- Handle this call quickly and return.
The transport that received the message.
The timestamp when the message was detected.
The message received.
- Parameters:
transportService - The transport service (TransportService) parameter.timestamp - The timestamp (Object) parameter.message - The message (MessageService) parameter.
Copyright (c) 1999, 2007 IBM