public class AstarteMqttV1Transport extends AstarteMqttTransport implements org.eclipse.paho.client.mqttv3.MqttCallbackExtended
m_clientm_astarteTransportEventListener, m_failedMessageStorage, m_introspectionSent, m_messageListener, m_propertyStorage| Constructor and Description |
|---|
AstarteMqttV1Transport(MutualSSLAuthenticationMqttConnectionInfo connectionInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectComplete(boolean reconnect,
java.lang.String serverURI) |
void |
connectionLost(java.lang.Throwable cause) |
void |
deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken token) |
void |
messageArrived(java.lang.String topic,
org.eclipse.paho.client.mqttv3.MqttMessage message) |
protected void |
onConnected(org.eclipse.paho.client.mqttv3.IMqttToken asyncActionToken) |
void |
onSuccess(org.eclipse.paho.client.mqttv3.IMqttToken asyncActionToken) |
void |
resendAllProperties() |
void |
retryFailedMessages() |
void |
sendAggregate(AstarteAggregateDatastreamInterface astarteInterface,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> value,
org.joda.time.DateTime timestamp) |
void |
sendEmptyCache() |
void |
sendIndividualValue(AstarteInterface astarteInterface,
java.lang.String path,
java.lang.Object value,
org.joda.time.DateTime timestamp) |
void |
sendIntrospection() |
void |
setFailedMessageStorage(AstarteFailedMessageStorage failedMessageStorage) |
connect, disconnect, getConnectionInfo, isConnected, onFailure, setCallbackgetAstarteProtocolType, getAstarteTransportEventListener, getDevice, getFailedMessageStorage, getMessageListener, getPropertyStorage, removePropertyFromStorage, savePropertyToStorage, sendAggregate, sendIndividualValue, setAstarteTransportEventListener, setDevice, setMessageListener, setPropertyStoragepublic AstarteMqttV1Transport(MutualSSLAuthenticationMqttConnectionInfo connectionInfo)
public void connectComplete(boolean reconnect,
java.lang.String serverURI)
connectComplete in interface org.eclipse.paho.client.mqttv3.MqttCallbackExtendedpublic void connectionLost(java.lang.Throwable cause)
connectionLost in interface org.eclipse.paho.client.mqttv3.MqttCallbackpublic void messageArrived(java.lang.String topic,
org.eclipse.paho.client.mqttv3.MqttMessage message)
throws AstarteTransportException
messageArrived in interface org.eclipse.paho.client.mqttv3.MqttCallbackAstarteTransportExceptionpublic void deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken token)
deliveryComplete in interface org.eclipse.paho.client.mqttv3.MqttCallbackpublic void setFailedMessageStorage(AstarteFailedMessageStorage failedMessageStorage)
setFailedMessageStorage in class AstarteTransportpublic void sendIntrospection()
throws AstarteTransportException
sendIntrospection in interface AstarteProtocolAstarteTransportExceptionpublic void sendEmptyCache()
throws AstarteTransportException
sendEmptyCache in interface AstarteProtocolAstarteTransportExceptionpublic void resendAllProperties()
throws AstarteTransportException
resendAllProperties in interface AstarteProtocolAstarteTransportExceptionpublic void retryFailedMessages()
throws AstarteTransportException
AstarteTransportExceptionpublic void sendIndividualValue(AstarteInterface astarteInterface, java.lang.String path, java.lang.Object value, org.joda.time.DateTime timestamp) throws AstarteTransportException
sendIndividualValue in interface AstarteProtocolAstarteTransportExceptionpublic void sendAggregate(AstarteAggregateDatastreamInterface astarteInterface, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> value, org.joda.time.DateTime timestamp) throws AstarteTransportException
sendAggregate in interface AstarteProtocolAstarteTransportExceptionpublic void onSuccess(org.eclipse.paho.client.mqttv3.IMqttToken asyncActionToken)
onSuccess in interface org.eclipse.paho.client.mqttv3.IMqttActionListenerprotected void onConnected(org.eclipse.paho.client.mqttv3.IMqttToken asyncActionToken)
throws AstarteTransportException
onConnected in class AstarteMqttTransportAstarteTransportException