code: public ServiceFuture<RegistryStatisticsInner> getStatsAsync(String resourceGroupName, String resourceName, final ServiceCallback<RegistryStatisticsInner> serviceCallback) {
          return ServiceFuture.fromResponse(getStatsWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback);
      }
docs: Get the statistics from an IoT hub.
  Get the statistics from an IoT hub.
  
  @param resourceGroupName The name of the resource group that contains the IoT hub.
  @param resourceName The name of the IoT hub.
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object