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에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java