Class AwsIotDeviceCommandAckListener
java.lang.Object
com.amazonaws.services.iot.client.AWSIotMessage
com.amazonaws.services.iot.client.AWSIotTopic
com.amazonaws.services.iot.client.shadow.AwsIotDeviceCommandAckListener
- All Implemented Interfaces:
AwsIotMessageCallback,AwsIotTopicCallback
This class extends
AWSIotTopic to provide customized callback
functions for the subscription requests of the shadow commands.-
Field Summary
Fields inherited from class com.amazonaws.services.iot.client.AWSIotMessage
errorCode, errorMessage, payload, qos, topic -
Constructor Summary
ConstructorsConstructorDescriptionAwsIotDeviceCommandAckListener(String topic, AWSIotQos qos, AbstractAwsIotDevice device) -
Method Summary
Modifier and TypeMethodDescriptionvoidCallback function to be invoked a non-block API has completed unsuccessfully.voidonMessage(AWSIotMessage message) Callback function to be invoked upon the arrival of a subscribed message.voidCallback function to be invoked a non-block API has completed successfully.voidCallback function to be invoked a non-block API has timed out.Methods inherited from class com.amazonaws.services.iot.client.AWSIotMessage
getErrorCode, getErrorMessage, getPayload, getQos, getStringPayload, getTopic, setErrorCode, setErrorMessage, setPayload, setQos, setStringPayload, setTopic
-
Constructor Details
-
AwsIotDeviceCommandAckListener
-
-
Method Details
-
onMessage
Description copied from class:AWSIotTopicCallback function to be invoked upon the arrival of a subscribed message.- Specified by:
onMessagein interfaceAwsIotTopicCallback- Overrides:
onMessagein classAWSIotTopic- Parameters:
message- the message received
-
onSuccess
public void onSuccess()Description copied from class:AWSIotMessageCallback function to be invoked a non-block API has completed successfully.- Specified by:
onSuccessin interfaceAwsIotMessageCallback- Overrides:
onSuccessin classAWSIotMessage
-
onFailure
public void onFailure()Description copied from class:AWSIotMessageCallback function to be invoked a non-block API has completed unsuccessfully.- Specified by:
onFailurein interfaceAwsIotMessageCallback- Overrides:
onFailurein classAWSIotMessage
-
onTimeout
public void onTimeout()Description copied from class:AWSIotMessageCallback function to be invoked a non-block API has timed out.- Specified by:
onTimeoutin interfaceAwsIotMessageCallback- Overrides:
onTimeoutin classAWSIotMessage
-