org.eclipse.kura.data
1.1.0, use
DataService.addDataServiceListener(org.eclipse.kura.data.listener.DataServiceListener)
to register a listener to a DataService.@Deprecated
@ConsumerType
public interface DataServiceListener
DataService
events such as notifications of connection establishing, message arrival, etc.
In order to detect implementors, the DataService
uses the the
whiteboard pattern.
DataService
at the occurrence of the event.
It expected that implementers of this interface do NOT perform long running tasks in the implementation of this
interface.Modifier and Type | Method and Description |
---|---|
void |
onConnectionEstablished()
Deprecated.
Notifies that the DataService has established a connection.
|
void |
onConnectionLost(java.lang.Throwable cause)
Deprecated.
Notifies that the DataService has unexpectedly disconnected.
|
void |
onDisconnected()
Deprecated.
Notifies that the DataService has cleanly disconnected.
|
void |
onDisconnecting()
Deprecated.
Notifies that the DataService is about to cleanly disconnect.
|
void |
onMessageArrived(java.lang.String topic,
byte[] payload,
int qos,
boolean retained)
Deprecated.
Notifies a message arrival.
|
void |
onMessageConfirmed(int messageId,
java.lang.String topic)
Deprecated.
Confirms message delivery to the broker.
|
void |
onMessagePublished(int messageId,
java.lang.String topic)
Deprecated.
Notifies the a message has been published.
|
void onConnectionEstablished()
void onDisconnecting()
void onDisconnected()
void onConnectionLost(java.lang.Throwable cause)
void onMessageArrived(java.lang.String topic, byte[] payload, int qos, boolean retained)
topic
- payload
- qos
- retained
- void onMessagePublished(int messageId, java.lang.String topic)
messageId
- void onMessageConfirmed(int messageId, java.lang.String topic)
messageId
-