azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.sdk.iot...

30 строки
2.1 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.sdk.iot.device.IotHubResponseCallback"
fullName: "com.microsoft.azure.sdk.iot.device.IotHubResponseCallback"
name: "IotHubResponseCallback"
nameWithType: "IotHubResponseCallback"
summary: "An interface for an IoT Hub response callback."
syntax: "public interface **IotHubResponseCallback**"
methods:
- uid: "com.microsoft.azure.sdk.iot.device.IotHubResponseCallback.execute(com.microsoft.azure.sdk.iot.device.ResponseMessage,java.lang.Object)"
fullName: "com.microsoft.azure.sdk.iot.device.IotHubResponseCallback.execute(ResponseMessage responseMessage, Object callbackContext)"
name: "execute(ResponseMessage responseMessage, Object callbackContext)"
nameWithType: "IotHubResponseCallback.execute(ResponseMessage responseMessage, Object callbackContext)"
summary: "Executes the callback."
modifiers:
- "abstract"
parameters:
- description: "the response from iothub that contains status code and message."
name: "responseMessage"
type: "<xref href=\"com.microsoft.azure.sdk.iot.device.ResponseMessage?alt=com.microsoft.azure.sdk.iot.device.ResponseMessage&text=ResponseMessage\" data-throw-if-not-resolved=\"False\" />"
- description: "a custom context given by the developer."
name: "callbackContext"
type: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract void execute(ResponseMessage responseMessage, Object callbackContext)"
desc: "Executes the callback."
type: "interface"
desc: "An interface for an IoT Hub response callback. Developers are expected to create an implementation of this interface, and the transport will call <xref uid=\"com.microsoft.azure.sdk.iot.device.IotHubResponseCallback.execute(com.microsoft.azure.sdk.iot.device.ResponseMessage,java.lang.Object)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"IotHubResponseCallback#execute(ResponseMessage, Object)\"></xref> upon receiving a response from an IoT Hub."
metadata: {}
package: "com.microsoft.azure.sdk.iot.device"
artifact: com.microsoft.azure.sdk.iot:iot-device-client:1.30.1