ProvisioningTask Class
- java.
lang. Object - java.
util. concurrent. Callable<Object> - com.
microsoft. azure. sdk. iot. provisioning. device. internal. task. ProvisioningTask
- com.
- java.
public class ProvisioningTask
Constructor Summary
Constructor | Description |
---|---|
ProvisioningTask(ProvisioningDeviceClientConfig provisioningDeviceClientConfig, ProvisioningDeviceClientContract provisioningDeviceClientContract) |
Constructor for creating a provisioning task |
Method Summary
Modifier and Type | Method and Description |
---|---|
Object |
call()
This method executes the State machine with the device goes through during registration. |
Constructor Details
ProvisioningTask
public ProvisioningTask(ProvisioningDeviceClientConfig provisioningDeviceClientConfig, ProvisioningDeviceClientContract provisioningDeviceClientContract)
Constructor for creating a provisioning task
Parameters:
provisioningDeviceClientConfig
- Config that contains details pertaining to Service
provisioningDeviceClientContract
- Contract with the service over the specified protocol
Throws:
ProvisioningDeviceClientException
- If any of the input parameters are invalid then this exception is thrown
Method Details
call
public Object call()
This method executes the State machine with the device goes through during registration.
Returns:
Returnsnull
</code></p>
Throws:
Exception
- This exception is thrown if any of the exception during execution is not handled.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java