Class AbstractAwsIotDevice
java.lang.Object
com.amazonaws.services.iot.client.shadow.AbstractAwsIotDevice
- Direct Known Subclasses:
AWSIotDevice
The actual implementation of
AWSIotDevice.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidprotected voiddelete()protected voiddelete(long timeout) protected voiddelete(AWSIotMessage message, long timeout) protected Stringget()protected Stringget(long timeout) protected voidget(AWSIotMessage message, long timeout) protected AbstractAwsIotDevicecom.fasterxml.jackson.databind.ObjectMapperlongFuture<?>booleanbooleanbooleanisTopicReady(String topic) voidonCommandAck(AWSIotMessage message) protected Stringprotected voidonShadowUpdate(String jsonState) voidonSubscriptionAck(String topic, boolean success) voidsetClient(AbstractAwsIotClient client) voidsetDeviceReportQos(AWSIotQos deviceReportQos) voidsetEnableVersioning(boolean enableVersioning) voidsetLocalVersion(AtomicLong localVersion) voidsetMethodAckQos(AWSIotQos methodAckQos) voidsetMethodQos(AWSIotQos methodQos) voidsetReportInterval(long reportInterval) voidsetShadowUpdateQos(AWSIotQos shadowUpdateQos) voidsetSyncTask(Future<?> syncTask) protected voidprotected voidprotected voidstopSync()protected voidupdate(AWSIotMessage message, long timeout) protected voidprotected void
-
Field Details
-
thingName
-
reportInterval
protected long reportInterval -
enableVersioning
protected boolean enableVersioning -
deviceReportQos
-
shadowUpdateQos
-
methodQos
-
methodAckQos
-
-
Constructor Details
-
AbstractAwsIotDevice
-
-
Method Details
-
getDevice
-
get
- Throws:
AWSIotException
-
get
-
get
- Throws:
AWSIotException
-
update
- Throws:
AWSIotException
-
update
protected void update(String jsonState, long timeout) throws AWSIotException, AWSIotTimeoutException -
update
- Throws:
AWSIotException
-
delete
- Throws:
AWSIotException
-
delete
-
delete
- Throws:
AWSIotException
-
onShadowUpdate
-
onDeviceReport
-
activate
- Throws:
AWSIotException
-
deactivate
- Throws:
AWSIotException
-
isTopicReady
-
isCommandReady
-
onSubscriptionAck
-
onCommandAck
-
startSync
protected void startSync() -
stopSync
protected void stopSync() -
startVersionSync
protected void startVersionSync() -
getThingName
-
getReportInterval
public long getReportInterval() -
isEnableVersioning
public boolean isEnableVersioning() -
getDeviceReportQos
-
getShadowUpdateQos
-
getMethodQos
-
getMethodAckQos
-
getReportedProperties
-
getUpdatableProperties
-
getCommandManager
-
getDeviceSubscriptions
-
getJsonObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getJsonObjectMapper() -
getClient
-
getSyncTask
-
getLocalVersion
-
setReportInterval
public void setReportInterval(long reportInterval) -
setEnableVersioning
public void setEnableVersioning(boolean enableVersioning) -
setDeviceReportQos
-
setShadowUpdateQos
-
setMethodQos
-
setMethodAckQos
-
setClient
-
setSyncTask
-
setLocalVersion
-