DigitalTwinInvokeCommandRequestOptions Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. digitaltwin. models. DigitalTwinInvokeCommandRequestOptions
- com.
public class DigitalTwinInvokeCommandRequestOptions
General request options that are applicable, but optional, for invoke command APIs.
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
getConnectTimeoutInSeconds()
Sets the time (in seconds) that the service waits for the device to come online. |
Integer |
getResponseTimeoutInSeconds()
Gets the time (in seconds) that the service waits for the method invocation to return a response. |
void |
setConnectTimeoutInSeconds(Integer connectTimeoutInSeconds)
Sets the time (in seconds) that the service waits for the device to come online. The default is 0 seconds (which means the device must already be online) and the maximum is 300 seconds. |
void |
setResponseTimeoutInSeconds(Integer responseTimeoutInSeconds)
Sets the time (in seconds) that the service waits for the method invocation to return a response. The default is 30 seconds, minimum is 5 seconds, and maximum is 300 seconds. |
Method Details
getConnectTimeoutInSeconds
public Integer getConnectTimeoutInSeconds()
Sets the time (in seconds) that the service waits for the device to come online.
Returns:
getResponseTimeoutInSeconds
public Integer getResponseTimeoutInSeconds()
Gets the time (in seconds) that the service waits for the method invocation to return a response.
Returns:
setConnectTimeoutInSeconds
public void setConnectTimeoutInSeconds(Integer connectTimeoutInSeconds)
Sets the time (in seconds) that the service waits for the device to come online. The default is 0 seconds (which means the device must already be online) and the maximum is 300 seconds.
Parameters:
setResponseTimeoutInSeconds
public void setResponseTimeoutInSeconds(Integer responseTimeoutInSeconds)
Sets the time (in seconds) that the service waits for the method invocation to return a response. The default is 30 seconds, minimum is 5 seconds, and maximum is 300 seconds.
Parameters:
Applies to
Azure SDK for Java