Class AwsIotDeviceCommandManager
java.lang.Object
com.amazonaws.services.iot.client.shadow.AwsIotDeviceCommandManager
This class manages the commands sent to the shadow. It maintains a list of
pending commands that are yet to be accepted or rejected by the shadow. Upon
receiving the shadow response for a command, it will notify therefore resume
the execution of the caller.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapperbooleanisDeltaTopic(String topic) voidonCommandAck(AWSIotMessage response) voidonCommandTimeout(AwsIotDeviceCommand command) voidvoidonSubscriptionAck(String topic, boolean success) runCommand(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout) runCommand(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout, boolean isAsync) runCommandSync(AwsIotDeviceCommandManager.Command command, AWSIotMessage request) runCommandSync(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout)
-
Constructor Details
-
AwsIotDeviceCommandManager
-
-
Method Details
-
getTopic
public String getTopic(AwsIotDeviceCommandManager.Command command, AwsIotDeviceCommandManager.CommandAck ack) -
runCommandSync
public String runCommandSync(AwsIotDeviceCommandManager.Command command, AWSIotMessage request) throws AWSIotException - Throws:
AWSIotException
-
runCommandSync
public String runCommandSync(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout) throws AWSIotException, AWSIotTimeoutException -
runCommand
public String runCommand(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout) throws AWSIotException - Throws:
AWSIotException
-
runCommand
public String runCommand(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout, boolean isAsync) throws AWSIotException, AWSIotTimeoutException -
onCommandAck
-
onCommandTimeout
-
onSubscriptionAck
-
onDeactivate
public void onDeactivate() -
isDeltaTopic
-
getPendingCommands
-
getDevice
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-