public class AwsIotDeviceDeltaListener extends AWSIotTopic
AWSIotTopic
to provide a callback function for
receiving the shadow delta updates.errorCode, errorMessage, payload, qos, topic
Constructor and Description |
---|
AwsIotDeviceDeltaListener(String topic,
AWSIotQos qos,
AbstractAwsIotDevice device) |
Modifier and Type | Method and Description |
---|---|
void |
onFailure()
Callback function to be invoked a non-block API has completed
unsuccessfully.
|
void |
onMessage(AWSIotMessage message)
Callback function to be invoked upon the arrival of a subscribed message.
|
void |
onSuccess()
Callback function to be invoked a non-block API has completed
successfully.
|
void |
onTimeout()
Callback function to be invoked a non-block API has timed out.
|
getErrorCode, getErrorMessage, getPayload, getQos, getStringPayload, getTopic, setErrorCode, setErrorMessage, setPayload, setQos, setStringPayload, setTopic
public AwsIotDeviceDeltaListener(String topic, AWSIotQos qos, AbstractAwsIotDevice device)
public void onMessage(AWSIotMessage message)
AWSIotTopic
onMessage
in interface AwsIotTopicCallback
onMessage
in class AWSIotTopic
message
- the message receivedpublic void onSuccess()
AWSIotMessage
onSuccess
in interface AwsIotMessageCallback
onSuccess
in class AWSIotMessage
public void onFailure()
AWSIotMessage
onFailure
in interface AwsIotMessageCallback
onFailure
in class AWSIotMessage
public void onTimeout()
AWSIotMessage
onTimeout
in interface AwsIotMessageCallback
onTimeout
in class AWSIotMessage
Copyright © 2020. All rights reserved.