RegistryManager.getDevicesAsync(Integer maxCount) 方法

定义

Async wrapper for getDevices() operation

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>as of release 1.12.0. Please use <xref uid="com.microsoft.azure.sdk.iot.service.devicetwin.DeviceTwin.queryTwin(String,Integer)" data-throw-if-not-resolved="false" data-raw-source="com.microsoft.azure.sdk.iot.service.devicetwin.DeviceTwin#queryTwin(String sqlQuery, Integer pageSize)"></xref> to query for all devices.</p>

</xrefdescription>

public CompletableFuture<ArrayList<Device>> getDevicesAsync(Integer maxCount)

参数

maxCount
Integer

The requested count of devices

返回

CompletableFuture<ArrayList<Device>>

The future object for the requested operation

例外

IOException

This exception is thrown if the IO operation failed

IotHubException

This exception is thrown if the response verification failed

适用于