com.microsoft.azure.sdk.iot.device.twin.GetTwinCallback 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;
/**
* The callback to be executed when the service responds to a getTwin request with the current twin.
*/
public interface GetTwinCallback
{
/**
* The callback to be executed when the service responds to a getTwin request with the current twin.
* @param twin The current twin.
* @param context The context that was provided for this callback in
* {@link com.microsoft.azure.sdk.iot.device.InternalClient#getTwinAsync(GetTwinCallback, Object)}.
*/
void onTwinReceived(Twin twin, IotHubClientException clientException, Object context);
}