public class AwsIotDeviceCommandAckListener extends AWSIotTopic
AWSIotTopic to provide customized callback
 functions for the subscription requests of the shadow commands.errorCode, errorMessage, payload, qos, topic| Constructor and Description | 
|---|
AwsIotDeviceCommandAckListener(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, setTopicpublic AwsIotDeviceCommandAckListener(String topic, AWSIotQos qos, AbstractAwsIotDevice device)
public void onMessage(AWSIotMessage message)
AWSIotTopiconMessage in interface AwsIotTopicCallbackonMessage in class AWSIotTopicmessage - the message receivedpublic void onSuccess()
AWSIotMessageonSuccess in interface AwsIotMessageCallbackonSuccess in class AWSIotMessagepublic void onFailure()
AWSIotMessageonFailure in interface AwsIotMessageCallbackonFailure in class AWSIotMessagepublic void onTimeout()
AWSIotMessageonTimeout in interface AwsIotMessageCallbackonTimeout in class AWSIotMessageCopyright © 2020. All rights reserved.