public interface ISubscriber
Subscriber to receive events from a datasource. This interface has generic methods that have to be implemented by all the subscribers.
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Start a new thread that received data from the subscriptions
|
void |
stop()
Stops the thread that receives data from the subscriptions
|
void |
subscribeConnectionStatus(IConnectionStatusListener listener)
Subscribes for connection status
|
void |
unsubscribeConnectionStatus(IConnectionStatusListener listener)
Unsubscribes for connection status
|
void subscribeConnectionStatus(IConnectionStatusListener listener)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the positions.void unsubscribeConnectionStatus(IConnectionStatusListener listener)
listener - the listener used in the subscribe methodvoid start()
void stop()