IotHubConnectionStatusChangeCallback Interface
public interface IotHubConnectionStatusChangeCallback
Callback interface for allowing users to respond to changes in the connectivity of this sdk to Iot Hub.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(IotHubConnectionStatus status, IotHubConnectionStatusChangeReason statusChangeReason, Throwable throwable, Object callbackContext)
Callback that is executed when the connection status of this sdk to the iot hub changes. |
Method Details
execute
public abstract void execute(IotHubConnectionStatus status, IotHubConnectionStatusChangeReason statusChangeReason, Throwable throwable, Object callbackContext)
Callback that is executed when the connection status of this sdk to the iot hub changes. Includes details for more context on why that change occurred.
Parameters:
status
- The new connection status of the sdk
statusChangeReason
- the reason why the sdk changed to this status
throwable
- The throwable that caused the change in status. May be null if there wasn't an associated throwable
callbackContext
- the context for this callback that was registered by the user
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java