public class AwsIotDeviceCommandManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AwsIotDeviceCommandManager.Command |
static class |
AwsIotDeviceCommandManager.CommandAck |
Constructor and Description |
---|
AwsIotDeviceCommandManager(AbstractAwsIotDevice device) |
Modifier and Type | Method and Description |
---|---|
AbstractAwsIotDevice |
getDevice() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
ConcurrentMap<String,AwsIotDeviceCommand> |
getPendingCommands() |
String |
getTopic(AwsIotDeviceCommandManager.Command command,
AwsIotDeviceCommandManager.CommandAck ack) |
boolean |
isDeltaTopic(String topic) |
void |
onCommandAck(AWSIotMessage response) |
void |
onCommandTimeout(AwsIotDeviceCommand command) |
void |
onDeactivate() |
void |
onSubscriptionAck(String topic,
boolean success) |
String |
runCommand(AwsIotDeviceCommandManager.Command command,
AWSIotMessage request,
long commandTimeout) |
String |
runCommand(AwsIotDeviceCommandManager.Command command,
AWSIotMessage request,
long commandTimeout,
boolean isAsync) |
String |
runCommandSync(AwsIotDeviceCommandManager.Command command,
AWSIotMessage request) |
String |
runCommandSync(AwsIotDeviceCommandManager.Command command,
AWSIotMessage request,
long commandTimeout) |
public AwsIotDeviceCommandManager(AbstractAwsIotDevice device)
public String getTopic(AwsIotDeviceCommandManager.Command command, AwsIotDeviceCommandManager.CommandAck ack)
public String runCommandSync(AwsIotDeviceCommandManager.Command command, AWSIotMessage request) throws AWSIotException
AWSIotException
public String runCommandSync(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout) throws AWSIotException, AWSIotTimeoutException
public String runCommand(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout) throws AWSIotException
AWSIotException
public String runCommand(AwsIotDeviceCommandManager.Command command, AWSIotMessage request, long commandTimeout, boolean isAsync) throws AWSIotException, AWSIotTimeoutException
public void onCommandAck(AWSIotMessage response)
public void onCommandTimeout(AwsIotDeviceCommand command)
public void onSubscriptionAck(String topic, boolean success)
public void onDeactivate()
public boolean isDeltaTopic(String topic)
public ConcurrentMap<String,AwsIotDeviceCommand> getPendingCommands()
public AbstractAwsIotDevice getDevice()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2020. All rights reserved.