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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.