IotHubListener.onMessageSent(Message message, Throwable e) Method

定义

Callback to be fired when a message that the transport client sent has been acknowledged by Iot Hub

public void onMessageSent(Message message, Throwable e)

参数

message
Message

The message that was acknowledged

e
Throwable

Null if the message was successfully acknowledged. Otherwise, this exception communicates if the message should be resent at all

适用于