org.eclipse.soda.dk.transport.service
Interface TransportListener
- All Superinterfaces:
- ErrorListener, MessageListener
- All Known Subinterfaces:
- ControllerService
- All Known Implementing Classes:
- Controller, QueueDevice, ThreadDevice, TransportDevice, TransportListeners, TransportTest, TransportTestcase, TunnelTransport
public interface TransportListener
- extends MessageListener
The TransportListener interface defines the methods to be called when
event notification occurs. A TransportListener Interface is implemented by
anyone who wishes to be notified whenever a valid MessageService is received
by the Transport.
- Version:
- 1.0.0
- See Also:
Transport,
ErrorListener,
MessageService,
ParameterService,
TransportService
|
Method Summary |
void |
transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the TransportService
changes. |
transportChanged
void transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
- This method will be called when the state of the TransportService
changes. 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.
Because of the multiple threads and quickly changing states, the current
state of the transport may not be the same as the newState input
parameter.
org.eclipse.soda.dk.transport.service.TransportService
java.lang.Object
The new state of the TransportService when the notification
process started.
The old state of the TransportService.
- Parameters:
transportService - The transport service (TransportService) parameter.timestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.
Copyright (c) 1999, 2007 IBM