public class AwsIotDeviceCommand extends AwsIotCompletion
AwsIotCompletionhasFailure, hasSuccess, hasTimeout, isAsync, request, timeout, timeoutTaskerrorCode, errorMessage, payload, qos, topic| Constructor and Description | 
|---|
AwsIotDeviceCommand(AwsIotDeviceCommandManager commandManager,
                   AwsIotDeviceCommandManager.Command command,
                   String commandId,
                   AWSIotMessage request,
                   long commandTimeout,
                   boolean isAsync)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
get(AbstractAwsIotDevice device)  | 
AwsIotDeviceCommandManager.Command | 
getCommand()  | 
String | 
getCommandId()  | 
AwsIotDeviceCommandManager | 
getCommandManager()  | 
Boolean | 
getRequestSent()  | 
AWSIotMessage | 
getResponse()  | 
void | 
onFailure()
Callback function to be invoked a non-block API has completed
 unsuccessfully. 
 | 
boolean | 
onReady(AbstractAwsIotDevice device)  | 
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. 
 | 
void | 
put(AbstractAwsIotDevice device)  | 
void | 
setResponse(AWSIotMessage response)  | 
getgetErrorCode, getErrorMessage, getPayload, getQos, getStringPayload, getTopic, setErrorCode, setErrorMessage, setPayload, setQos, setStringPayload, setTopicpublic AwsIotDeviceCommand(AwsIotDeviceCommandManager commandManager, AwsIotDeviceCommandManager.Command command, String commandId, AWSIotMessage request, long commandTimeout, boolean isAsync)
public void put(AbstractAwsIotDevice device) throws AWSIotException
AWSIotExceptionpublic String get(AbstractAwsIotDevice device) throws AWSIotException, AWSIotTimeoutException
public boolean onReady(AbstractAwsIotDevice device)
public void onSuccess()
AWSIotMessageonSuccess in interface AwsIotMessageCallbackonSuccess in class AwsIotCompletionpublic void onFailure()
AWSIotMessageonFailure in interface AwsIotMessageCallbackonFailure in class AwsIotCompletionpublic void onTimeout()
AWSIotMessageonTimeout in interface AwsIotMessageCallbackonTimeout in class AwsIotCompletionpublic AwsIotDeviceCommandManager getCommandManager()
public AwsIotDeviceCommandManager.Command getCommand()
public String getCommandId()
public AWSIotMessage getResponse()
public Boolean getRequestSent()
public void setResponse(AWSIotMessage response)
Copyright © 2020. All rights reserved.