DirectMethodRequest Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. edge. DirectMethodRequest
- com.
public class DirectMethodRequest
Json parser for a method request. Used to invoke methods on other devices/modules
Constructor Summary
Constructor | Description |
---|---|
DirectMethodRequest(String methodName, Object payload) |
Constructor for a DirectMethodRequest. Uses default responseTimeout and connectionTimeout which is to never timeout |
DirectMethodRequest(String methodName, Object payload, Integer responseTimeout, Integer connectionTimeout) |
Constructor for a DirectMethodRequest. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
toJson()
Return the json representation of this object |
Constructor Details
DirectMethodRequest
public DirectMethodRequest(String methodName, Object payload)
Constructor for a DirectMethodRequest. Uses default responseTimeout and connectionTimeout which is to never timeout
Parameters:
Throws:
DirectMethodRequest
public DirectMethodRequest(String methodName, Object payload, Integer responseTimeout, Integer connectionTimeout)
Constructor for a DirectMethodRequest.
Parameters:
Throws:
Method Details
toJson
public String toJson()
Return the json representation of this object
Returns:
Applies to
Azure SDK for Java