CorrelatingMessageCallback.onRequestAcknowledged(IotHubTransportPacket packet, Object callbackContext, Throwable e) 方法

定义

Called when the message request has been sent and IoT hub has acknowledged the request.

public void onRequestAcknowledged(IotHubTransportPacket packet, Object callbackContext, Throwable e)

参数

packet
IotHubTransportPacket

The request message acknowledged by the transport.

callbackContext
Object

The context sent with the message.

e
Throwable

The error or exception given by the transport. If there are no errors this will benull 

</code> if there are errors this will more often be a <xref uid="com.microsoft.azure.sdk.iot.device.exceptions.TransportException" data-throw-if-not-resolved="false" data-raw-source="com.microsoft.azure.sdk.iot.device.exceptions.TransportException"></xref>. </p>

适用于