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 |
---|---|
void |
onStatusChanged(ConnectionStatusChangeContext connectionStatusChangeContext)
The callback that is executed each time the connection status of the client changes. Includes details for more context on why that change occurred. |
Method Details
onStatusChanged
public void onStatusChanged(ConnectionStatusChangeContext connectionStatusChangeContext)
The callback that is executed each time the connection status of the client changes. Includes details for more context on why that change occurred.
Parameters:
connectionStatusChangeContext
- the context surrounding the status change, including the new status, the reason for the new status, the underlying exception (if connection was lost), and the user provided context object that was set when setting the connection status change callback on the client.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java