com.microsoft.azure.sdk.iot.device.twin.SubscriptionAcknowledgedCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot-device-client Show documentation
Show all versions of iot-device-client Show documentation
The Microsoft Azure IoT Device SDK for Java
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.sdk.iot.device.twin;
import com.microsoft.azure.sdk.iot.device.exceptions.IotHubClientException;
/**
* Callback to be executed when the request to subscribe to desired properties has been acknowledged by the service.
*/
public interface SubscriptionAcknowledgedCallback
{
/**
* The callback that is executed when the request to subscribe to desired properties or direct methodshas been
* acknowledged by the service.
* @param context The context that was provided for this callback in
* {@link com.microsoft.azure.sdk.iot.device.InternalClient#subscribeToDesiredPropertiesAsync(DesiredPropertiesCallback, Object, SubscriptionAcknowledgedCallback, Object)}
* or in {@link com.microsoft.azure.sdk.iot.device.InternalClient#subscribeToMethodsAsync(MethodCallback, Object, SubscriptionAcknowledgedCallback, Object)}.
*/
void onSubscriptionAcknowledged(IotHubClientException exception, Object context);
}