public class DeviceTwin extends java.lang.Object implements MessageCallback
| Constructor and Description |
|---|
DeviceTwin(InternalClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
getTwinAsync(GetTwinCorrelatingMessageCallback twinCallback,
java.lang.Object callbackContext) |
IotHubMessageResult |
onCloudToDeviceMessageReceived(Message message,
java.lang.Object callbackContext)
Executes the callback.
|
void |
subscribeToDesiredPropertiesAsync(SubscriptionAcknowledgedCallback subscriptionAcknowledgedCallback,
java.lang.Object subscribeToDesiredPropertiesCallbackContext,
DesiredPropertiesCallback desiredPropertiesCallback,
java.lang.Object desiredPropertiesUpdateCallbackContext) |
void |
updateReportedPropertiesAsync(TwinCollection reportedProperties,
ReportedPropertiesUpdateCorrelatingMessageCallback reportedPropertiesUpdateCorrelatingMessageCallback,
java.lang.Object callbackContext) |
public DeviceTwin(InternalClient client)
public IotHubMessageResult onCloudToDeviceMessageReceived(Message message, java.lang.Object callbackContext)
MessageCallbackIotHubMessageResult.COMPLETE, IotHubMessageResult.ABANDON, or IotHubMessageResult.REJECT
the message.
If this callback throws an exception it will not complete the message and can cause the messages to build up on the IoT hub until they expire. This can prevent further message delivery until all messages are expired or completed from IoT hub.
onCloudToDeviceMessageReceived in interface MessageCallbackmessage - the message.callbackContext - a custom context given by the developer.IotHubMessageResult.COMPLETE, IotHubMessageResult.ABANDON,
or IotHubMessageResult.REJECT the message.public void getTwinAsync(GetTwinCorrelatingMessageCallback twinCallback, java.lang.Object callbackContext)
public void updateReportedPropertiesAsync(TwinCollection reportedProperties, ReportedPropertiesUpdateCorrelatingMessageCallback reportedPropertiesUpdateCorrelatingMessageCallback, java.lang.Object callbackContext)
public void subscribeToDesiredPropertiesAsync(SubscriptionAcknowledgedCallback subscriptionAcknowledgedCallback, java.lang.Object subscribeToDesiredPropertiesCallbackContext, DesiredPropertiesCallback desiredPropertiesCallback, java.lang.Object desiredPropertiesUpdateCallbackContext)
Copyright © 2023. All rights reserved.