public class AwsIotDeviceCommand extends AwsIotCompletion
AwsIotCompletion
hasFailure, hasSuccess, hasTimeout, isAsync, request, timeout, timeoutTask
errorCode, 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) |
get
getErrorCode, getErrorMessage, getPayload, getQos, getStringPayload, getTopic, setErrorCode, setErrorMessage, setPayload, setQos, setStringPayload, setTopic
public AwsIotDeviceCommand(AwsIotDeviceCommandManager commandManager, AwsIotDeviceCommandManager.Command command, String commandId, AWSIotMessage request, long commandTimeout, boolean isAsync)
public void put(AbstractAwsIotDevice device) throws AWSIotException
AWSIotException
public String get(AbstractAwsIotDevice device) throws AWSIotException, AWSIotTimeoutException
public boolean onReady(AbstractAwsIotDevice device)
public void onSuccess()
AWSIotMessage
onSuccess
in interface AwsIotMessageCallback
onSuccess
in class AwsIotCompletion
public void onFailure()
AWSIotMessage
onFailure
in interface AwsIotMessageCallback
onFailure
in class AwsIotCompletion
public void onTimeout()
AWSIotMessage
onTimeout
in interface AwsIotMessageCallback
onTimeout
in class AwsIotCompletion
public 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.