public abstract class AbstractAwsIotDevice extends Object
AWSIotDevice
.Modifier and Type | Field and Description |
---|---|
protected AWSIotQos |
deviceReportQos |
protected boolean |
enableVersioning |
protected AWSIotQos |
methodAckQos |
protected AWSIotQos |
methodQos |
protected long |
reportInterval |
protected AWSIotQos |
shadowUpdateQos |
protected String |
thingName |
Modifier | Constructor and Description |
---|---|
protected |
AbstractAwsIotDevice(String thingName) |
protected final String thingName
protected long reportInterval
protected boolean enableVersioning
protected AWSIotQos deviceReportQos
protected AWSIotQos shadowUpdateQos
protected AWSIotQos methodQos
protected AWSIotQos methodAckQos
protected AbstractAwsIotDevice(String thingName)
protected AbstractAwsIotDevice getDevice()
protected String get() throws AWSIotException
AWSIotException
protected String get(long timeout) throws AWSIotException, AWSIotTimeoutException
protected void get(AWSIotMessage message, long timeout) throws AWSIotException
AWSIotException
protected void update(String jsonState) throws AWSIotException
AWSIotException
protected void update(String jsonState, long timeout) throws AWSIotException, AWSIotTimeoutException
protected void update(AWSIotMessage message, long timeout) throws AWSIotException
AWSIotException
protected void delete() throws AWSIotException
AWSIotException
protected void delete(long timeout) throws AWSIotException, AWSIotTimeoutException
protected void delete(AWSIotMessage message, long timeout) throws AWSIotException
AWSIotException
protected void onShadowUpdate(String jsonState)
protected String onDeviceReport()
public void activate() throws AWSIotException
AWSIotException
public void deactivate() throws AWSIotException
AWSIotException
public boolean isTopicReady(String topic)
public boolean isCommandReady(AwsIotDeviceCommandManager.Command command)
public void onSubscriptionAck(String topic, boolean success)
public void onCommandAck(AWSIotMessage message)
protected void startSync()
protected void stopSync()
protected void startVersionSync()
public String getThingName()
public long getReportInterval()
public boolean isEnableVersioning()
public AWSIotQos getDeviceReportQos()
public AWSIotQos getShadowUpdateQos()
public AWSIotQos getMethodQos()
public AWSIotQos getMethodAckQos()
public AwsIotDeviceCommandManager getCommandManager()
public ConcurrentMap<String,Boolean> getDeviceSubscriptions()
public com.fasterxml.jackson.databind.ObjectMapper getJsonObjectMapper()
public AbstractAwsIotClient getClient()
public Future<?> getSyncTask()
public AtomicLong getLocalVersion()
public void setReportInterval(long reportInterval)
public void setEnableVersioning(boolean enableVersioning)
public void setDeviceReportQos(AWSIotQos deviceReportQos)
public void setShadowUpdateQos(AWSIotQos shadowUpdateQos)
public void setMethodQos(AWSIotQos methodQos)
public void setMethodAckQos(AWSIotQos methodAckQos)
public void setClient(AbstractAwsIotClient client)
public void setSyncTask(Future<?> syncTask)
public void setLocalVersion(AtomicLong localVersion)
Copyright © 2020. All rights reserved.