ReportedPropertiesUpdateCorrelatingMessageCallback Interface
public interface ReportedPropertiesUpdateCorrelatingMessageCallback
Detailed state notification callback for tracking a particular updateReportedPropertiesAsync(TwinCollection reportedProperties, ReportedPropertiesUpdateCorrelatingMessageCallback reportedPropertiesUpdateCorrelatingMessageCallback, Object callbackContext) request.
Users who don't need all this information are advised to use updateReportedPropertiesAsync(TwinCollection reportedProperties, ReportedPropertiesCallback reportedPropertiesCallback, Object callbackContext) instead.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
onRequestAcknowledged(Message message, Object callbackContext, IotHubClientException e)
Called when the message request has been sent and IoT hub has acknowledged the request. |
void |
onRequestQueued(Message message, Object callbackContext)
Called when the message has been queued to the transport. |
void |
onRequestSent(Message message, Object callbackContext)
Called when the message request has been sent by the transport. |
void |
onResponseAcknowledged(Message message, Object callbackContext)
Called when a response to the message has been sent by IoT hub and has been acknowledged by the transport. |
void |
onResponseReceived(Message message, Object callbackContext, IotHubStatusCode statusCode, ReportedPropertiesUpdateResponse response, IotHubClientException e)
Called when a response to the sent message has been sent by IoT hub and has been receieved by the transport. |
Method Details
onRequestAcknowledged
public void onRequestAcknowledged(Message message, Object callbackContext, IotHubClientException e)
Called when the message request has been sent and IoT hub has acknowledged the request.
Parameters:
The error or exception given by the transport. If there are no errors this will benull
</code> . </p>
onRequestQueued
public void onRequestQueued(Message message, Object callbackContext)
Called when the message has been queued to the transport.
Parameters:
message
- The request message queued by the transport.
callbackContext
- The context sent with the message.
onRequestSent
public void onRequestSent(Message message, Object callbackContext)
Called when the message request has been sent by the transport.
Parameters:
message
- The request message sent by the transport.
callbackContext
- The context sent with the message.
onResponseAcknowledged
public void onResponseAcknowledged(Message message, Object callbackContext)
Called when a response to the message has been sent by IoT hub and has been acknowledged by the transport.
Parameters:
message
- The response message queued to the transport.
callbackContext
- The context sent with the message.
onResponseReceived
public void onResponseReceived(Message message, Object callbackContext, IotHubStatusCode statusCode, ReportedPropertiesUpdateResponse response, IotHubClientException e)
Called when a response to the sent message has been sent by IoT hub and has been receieved by the transport.
Parameters:
message
- The response message received by the transport.
callbackContext
- The context sent with the message.
statusCode
- The status of the update reported properties onMethodInvoked as a whole.
response
- The new version of the reported properties after a successful update. If the client updating its reported properties is connected to Edgehub instead of IoT Hub, then this version won't change since Edgehub does not apply this reported properties update immediately.
e
- The error or exception given by the transport. If there are no errors this will benull
</code> . </p>
Applies to
Azure SDK for Java